/**
 * 主样式文件
 * 2.0版本 - 基础样式和变量
 */

:root {
    /* 颜色变量 - 蓝/紫/白/黑/灰/暗红配色方案 */
    --primary-color: #667eea;      /* 蓝色 - 主色 */
    --primary-dark: #5568d3;       /* 深蓝色 */
    --primary-light: #8b9aff;      /* 浅蓝色 */
    --secondary-color: #764ba2;     /* 紫色 - 辅助色 */
    --secondary-dark: #5a3a7a;     /* 深紫色 */
    --accent-color: #8b2635;        /* 暗红色 - 强调色 */
    --accent-light: #a52a2a;       /* 浅暗红色 */
    --text-color: #1a1a1a;          /* 黑色 - 主文字 */
    --text-light: #666666;         /* 灰色 - 次要文字 */
    --text-muted: #999999;          /* 浅灰色 - 辅助文字 */
    --bg-color: #f5f5f5;            /* 浅灰色 - 背景 */
    --bg-white: #ffffff;            /* 白色 - 卡片背景 */
    --white: #ffffff;               /* 白色 */
    --black: #000000;               /* 纯黑色 */
    --border-color: #e9ecef;        /* 边框灰色 */
    --border-dark: #cccccc;         /* 深边框灰色 */
    
    /* 间距变量 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* 字体变量 */
    --font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-xxl: 32px;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);
    
    /* 过渡 */
    --transition: all 0.3s ease;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* 容器 */
.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: 4px;
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-link {
    background: none;
    color: var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-md);
}

/* 标题 */
.section-title {
    font-size: var(--font-size-xxl);
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.empty-state {
    text-align: center;
    padding: var(--spacing-xxl);
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
    display: block;
}

/* ==================== 页头样式 ==================== */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

.logo {
    flex: 0 0 auto;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.08);
}

.nav-item.has-dropdown .nav-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

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

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    list-style: none;
    padding: 8px 0;
    margin: 8px 0 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    border: 1px solid var(--border-color);
}

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

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
}

.dropdown-menu a:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.08);
    padding-left: 20px;
}

.header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-inquiry {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    white-space: nowrap;
    border: none;
}

.btn-inquiry:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

/* ==================== 页脚样式 - 裕同科技风格 ==================== */
.site-footer.yuto-style {
    margin-top: 80px;
    background: transparent;
}

/* 顶部区域 */
.footer-top {
    background: var(--bg-white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.footer-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo .logo-link {
    text-decoration: none;
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.footer-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-slogan {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
}

.back-to-top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.back-to-top i {
    font-size: 16px;
}

/* 主要内容区域 - 浅灰色背景 */
.footer-main {
    background: var(--bg-color);
    padding: 50px 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column {
    min-width: 0;
}

.footer-column-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.footer-contact-info {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-item span {
    word-break: break-word;
}

.contact-label {
    font-weight: 500;
    color: var(--text-color);
}

.footer-social {
    margin-bottom: 20px;
}

.social-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.footer-terms {
    margin-top: 15px;
}

.terms-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: var(--primary-color);
}

/* 二维码区域 */
.footer-qr-codes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.qr-item {
    text-align: center;
}

.qr-code {
    width: 120px;
    height: 120px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    background: var(--bg-white);
    object-fit: contain;
    transition: transform 0.3s ease;
}

.qr-code:hover {
    transform: scale(1.05);
}

.qr-label {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* 底部版权区域 - 使用我们的颜色方案 */
.footer-bottom {
    position: relative;
    overflow: hidden;
}

.footer-bottom-bg {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 25px 0;
    position: relative;
}

.footer-bottom-bg::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 0 100% 0 0;
    opacity: 0.6;
}

.copyright-text {
    color: white;
    font-size: 14px;
    margin: 0;
    text-align: right;
    position: relative;
    z-index: 1;
}

/* ==================== 响应式 ==================== */
@media (max-width: 968px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        padding: 15px 20px;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(102, 126, 234, 0.05);
        margin: 0;
        border-radius: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-qr-codes {
        justify-content: center;
    }
    
    .footer-top-content {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .logo img {
        height: 40px;
    }
    
    .header-content {
        padding: 12px 0;
    }
    
    .btn-inquiry {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-main {
        padding: 40px 0;
    }
    
    .footer-top {
        padding: 15px 0;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .footer-slogan {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-top-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-top-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .copyright-text {
        text-align: center;
        font-size: 12px;
    }
}

