/* ===================================
   商伙伴官网 - 全局样式
   =================================== */

/* CSS 变量 */
:root {
    --primary-color: #1E88E5;
    --primary-dark: #1565C0;
    --primary-light: #64B5F6;
    --secondary-color: #2E5EA6;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-gray: #FAFAFA;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', '思源黑体', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-white);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 通用按钮 */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn-block {
    width: 100%;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.navbar.scrolled .logo-text {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-menu a {
    color: var(--text-color);
}

.nav-menu a:hover {
    color: var(--primary-light);
}

.navbar.scrolled .nav-menu a:hover {
    color: var(--primary-color);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--text-color);
}

/* Hero 首屏 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.85) 0%, rgba(42, 82, 152, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero-slogan {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 通用区块样式 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-top: -30px;
    margin-bottom: 50px;
}

/* 核心业务 */
.business {
    background: var(--bg-light);
}

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

.business-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.business-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.business-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.business-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 为什么选择我们 */
.why-us {
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
}

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

.advantage-card {
    padding: 30px;
    text-align: center;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    background: var(--bg-light);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.advantage-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.advantage-card p {
    color: var(--text-light);
}

/* 案例展示 */
.cases {
    background: var(--bg-light);
}

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

.case-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.case-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.case-info {
    padding: 25px;
}

.case-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.case-meta {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.case-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 发展历程 */
.history {
    background: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding: 20px 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.timeline-content {
    width: 45%;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-year {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 14px;
}

/* 新闻动态 */
.news {
    background: var(--bg-light);
}

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

.news-item {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.news-item:hover {
    box-shadow: var(--shadow-md);
}

.news-date {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.news-item h3 {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
}

/* 团队介绍 */
.team {
    background: white;
}

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

.team-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: white;
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-light);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

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

.team-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 品牌保障 */
.guarantee {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.guarantee .section-title {
    color: white;
}

.guarantee .section-title::after {
    background: white;
}

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.guarantee-item {
    text-align: center;
    padding: 25px 15px;
}

.guarantee-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.guarantee-item:hover .guarantee-icon {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.guarantee-item h4 {
    font-size: 14px;
    font-weight: 500;
}

/* 加入我们 */
.join {
    background: var(--bg-light);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.job-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.job-card:hover {
    box-shadow: var(--shadow-md);
}

.job-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.job-salary {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.job-requirements {
    list-style: none;
}

.job-requirements li {
    padding: 8px 0;
    color: var(--text-light);
    font-size: 14px;
    padding-left: 20px;
    position: relative;
}

.job-requirements li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.join-benefits {
    text-align: center;
    margin-bottom: 40px;
}

.join-benefits h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.benefit-tag {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    border-radius: 25px;
    font-size: 14px;
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
}

.benefit-tag i {
    color: var(--primary-color);
    margin-right: 8px;
}

.join-cta {
    text-align: center;
}

/* 联系我们 */
.contact {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

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

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius-md);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    resize: vertical;
}

.map-container {
    margin-top: 40px;
}

.map-container iframe {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.map-placeholder {
    height: 400px;
    background: linear-gradient(135deg, #e3f2fd, #f5f5f5);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.map-placeholder i {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.map-placeholder p {
    font-size: 18px;
    margin-bottom: 10px;
}

.map-placeholder small {
    font-size: 14px;
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 40px 0;
}

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

.footer-info p {
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.footer-info a {
    color: var(--primary-light);
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .business-grid,
    .advantage-grid,
    .cases-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .guarantee-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-menu a {
        color: var(--text-color);
        display: block;
        padding: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .business-grid,
    .advantage-grid,
    .cases-grid,
    .news-grid,
    .stats-grid,
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .guarantee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .guarantee-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-list {
        flex-direction: column;
    }
}
