/* ============================================
   四川叁伍友人跨境电子商务有限公司 - 样式文件
   ============================================ */

/* ============================================
   基础重置与变量定义
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - Webflow风格 */
    --primary-blue: #146ef5;
    --blue-400: #3b89ff;
    --blue-300: #006acc;
    --button-hover-blue: #0055d4;
    
    /* 文字色 */
    --text-primary: #080808;
    --text-secondary: #222222;
    --text-muted: #5a5a5a;
    --text-placeholder: #ababab;
    
    /* 背景与边框 */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-gray: #d8d8d8;
    --border-hover: #898989;
    
    /* 辅助色 */
    --purple: #7a3dff;
    --pink: #ed52cb;
    --green: #00d722;
    --orange: #ff6b00;
    --yellow: #ffae13;
    --red: #ee1d36;
    
    /* 阴影系统 - 5层级联 */
    --shadow-cascade: rgba(0,0,0,0) 0px 84px 24px, 
                      rgba(0,0,0,0.01) 0px 54px 22px, 
                      rgba(0,0,0,0.04) 0px 30px 18px, 
                      rgba(0,0,0,0.08) 0px 13px 13px, 
                      rgba(0,0,0,0.09) 0px 3px 7px;
    
    /* 字体 */
    --font-family: 'Arial', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    
    /* 过渡 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   导航栏样式
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gray);
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo区域 */
.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-section img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-link:hover {
    background-color: rgba(20, 110, 245, 0.08);
    color: var(--primary-blue);
}

.nav-link .arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.nav-item:hover .nav-link .arrow {
    transform: rotate(180deg);
}

/* 下拉菜单 */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-cascade);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    padding: 8px 0;
    margin-top: 8px;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background-color: rgba(20, 110, 245, 0.06);
    color: var(--primary-blue);
    padding-left: 24px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* ============================================
   Banner轮播区
   ============================================ */
.banner-section {
    margin-top: 72px;
    height: 600px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.banner-slider {
    position: relative;
    height: 100%;
    width: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.banner-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(20, 110, 245, 0.1);
    color: var(--primary-blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.banner-title {
    font-size: 56px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.8px;
}

.banner-title span {
    color: var(--primary-blue);
}

.banner-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.banner-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--button-hover-blue);
    transform: translateX(6px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-gray);
}

.btn-secondary:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateX(6px);
}

/* 轮播指示器 */
.banner-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-gray);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.banner-dot.active {
    background: var(--primary-blue);
    transform: scale(1.2);
}

.banner-dot:hover {
    background: var(--blue-400);
}

/* ============================================
   核心业务展示区
   ============================================ */
.section {
    padding: 100px 24px;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* 业务卡片网格 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-cascade);
    transform: translateY(-4px);
}

.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 32px;
}

.service-icon.blue {
    background: rgba(20, 110, 245, 0.1);
    color: var(--primary-blue);
}

.service-icon.green {
    background: rgba(0, 215, 34, 0.1);
    color: var(--green);
}

.service-icon.purple {
    background: rgba(122, 61, 255, 0.1);
    color: var(--purple);
}

.service-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   软件产品区
   ============================================ */
.products-section {
    background: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-cascade);
    transform: translateY(-4px);
}

.product-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid var(--border-gray);
}

.product-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(20, 110, 245, 0.1);
    color: var(--primary-blue);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.product-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.product-tagline {
    font-size: 14px;
    color: var(--text-muted);
}

.product-body {
    padding: 24px 32px;
}

.product-features {
    list-style: none;
    margin-bottom: 24px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.product-features li::before {
    content: "✓";
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 215, 34, 0.1);
    color: var(--green);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.product-footer {
    padding: 0 32px 32px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   关于我们区
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-visual {
    position: relative;
}

.about-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 关于我们区Logo展示 */
.about-logo-wrapper {
    text-align: center;
}

.about-logo-img {
    height: 140px;
    width: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.about-logo-text {
    color: white;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
}

.about-logo-domain {
    color: white;
    font-size: 15px;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 2px;
}

/* ============================================
   联系我们区
   ============================================ */
.contact-section {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
}

/* 两栏联系方式布局 */
.contact-two-col {
    display: flex;
    justify-content: center;
}

.contact-info-full {
    max-width: 900px;
    width: 100%;
}

.contact-info-full h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 40px;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 110, 245, 0.1);
    color: var(--primary-blue);
    border-radius: var(--radius-sm);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-detail h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-detail p {
    font-size: 14px;
    color: var(--text-muted);
}

/* 联系方式超链接样式 */
.contact-detail a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-detail a:hover {
    color: var(--primary-blue);
}

/* 一行联系方式布局 */
.contact-row {
    display: flex;
    justify-content: center;
}

.contact-info-full {
    max-width: 1200px;
    width: 100%;
}

.contact-info-full h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-align: center;
}

.contact-row-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.contact-item-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.contact-item-row .contact-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item-row .contact-detail h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.contact-item-row .contact-detail p {
    font-size: 13px;
    line-height: 1.5;
}

.contact-form {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   底部版权栏
   ============================================ */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 24px 24px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 40px;
}

.footer-logo span {
    font-size: 16px;
    font-weight: 600;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-copyright a:hover {
    color: white;
}

.footer-icp {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-icp a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-icp a:hover {
    color: white;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 992px) {
    .services-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border-gray);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-light);
        margin-top: 0;
        display: none;
    }

    .nav-item.active .dropdown {
        display: block;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .banner-section {
        height: 480px;
    }

    .banner-title {
        font-size: 36px;
    }

    .banner-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .banner-dots {
        bottom: 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .about-logo-img {
        height: 100px;
    }
    
    .contact-row-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-item-row {
        flex: 0 0 calc(50% - 20px);
        min-width: 200px;
    }
}

@media (max-width: 479px) {
    .banner-section {
        height: 420px;
    }

    .banner-content {
        padding: 0 20px;
    }

    .banner-badge {
        margin-bottom: 16px;
        padding: 6px 14px;
        font-size: 11px;
    }

    .banner-title {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .banner-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .banner-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 14px;
    }

    .banner-dots {
        bottom: 15px;
        gap: 8px;
    }

    .banner-dot {
        width: 8px;
        height: 8px;
    }

    .section {
        padding: 60px 16px;
    }

    .about-logo-img {
        height: 80px;
    }

    .about-logo-text {
        font-size: 22px;
    }
}
