:root {
    --primary-color: #00A651;
    --primary-dark: #008c44;
    --primary-light: #e6f7ef;
    --secondary-color: #FF6B35;
    --accent-color: #1E88E5;
    --dark-bg: #1a1a2e;
    --light-bg: #f5f7fa;
    --text-dark: #333;
    --text-light: #666;
    --text-muted: #999;
    --white: #fff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--light-bg);
}

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

/* 顶部通知栏 */
.top-bar {
    background: var(--dark-bg);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

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

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.top-bar a:hover {
    opacity: 1;
}

.top-bar i {
    margin-right: 5px;
}

.lang-selector {
    margin-left: 20px;
    padding: 2px 8px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    cursor: pointer;
}

/* 主导航栏 */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.logo i {
    font-size: 36px;
    color: var(--primary-color);
}

.logo-text h1 {
    font-size: 24px;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-text span {
    font-size: 12px;
    color: var(--text-light);
}

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

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-btn {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-count {
    background: var(--secondary-color);
    color: var(--white);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

.login-btn {
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    transition: background 0.3s;
}

.login-btn:hover {
    background: var(--primary-dark);
}

/* 英雄区 */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255,255,255,0.05);
    transform: rotate(30deg);
}

.hero-content {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}

.quick-quote {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-hover);
}

.quick-quote h2 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-quote h2 i {
    color: var(--secondary-color);
}

.quick-quote > p {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 20px;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-row label {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
}

.dimension-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dimension-inputs input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
}

.dimension-inputs span {
    color: var(--text-muted);
}

.form-row select,
.form-row input {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--white);
}

.quote-btn {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quote-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

/* 促销卡片 */
.hero-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.promo-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.promo-card.orange {
    border-top: 4px solid var(--secondary-color);
}

.promo-card.green {
    border-top: 4px solid var(--primary-color);
}

.promo-card h3 {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.promo-card .price {
    font-size: 42px;
    font-weight: 700;
    color: var(--secondary-color);
}

.promo-card.green .price {
    color: var(--primary-color);
}

.promo-card .unit {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light);
}

.promo-card p {
    color: var(--text-dark);
    font-weight: 500;
    margin-top: 5px;
}

.promo-card .delivery {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 400;
}

/* 优势区 */
.features {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-item i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-item h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

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

/* 服务展示 */
.services {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-icon::before {
    content: '';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 36px;
    color: var(--white);
}

.service-icon.pcb {
    background: linear-gradient(135deg, #00A651, #008c44);
}
.service-icon.pcb::before {
    content: '\f2db';
}

.service-icon.assembly {
    background: linear-gradient(135deg, #FF6B35, #e55a2b);
}
.service-icon.assembly::before {
    content: '\f0e3';
}

.service-icon.flex {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
}
.service-icon.flex::before {
    content: '\f1b0';
}

.service-icon.hdi {
    background: linear-gradient(135deg, #1E88E5, #1565C0);
}
.service-icon.hdi::before {
    content: '\f013';
}

.service-icon.cnc {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}
.service-icon.cnc::before {
    content: '\f0ad';
}

.service-icon.print3d {
    background: linear-gradient(135deg, #00BCD4, #0097A7);
}
.service-icon.print3d::before {
    content: '\f1b3';
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.price-start {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.lead-time {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

/* 能力展示 */
.capabilities {
    padding: 60px 0;
    background: var(--white);
}

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

.capability-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.capability-box.featured {
    border-color: var(--primary-color);
    background: var(--primary-light);
    position: relative;
}

.capability-box.featured::before {
    content: '推荐';
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    font-size: 12px;
    border-radius: 0 0 var(--radius) var(--radius);
}

.capability-box h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.capability-box ul {
    list-style: none;
    margin-bottom: 25px;
}

.capability-box li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.capability-box li:last-child {
    border-bottom: none;
}

.capability-box li span:last-child {
    color: var(--text-light);
}

.btn-outline,
.btn-primary {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

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

.btn-primary:hover {
    background: var(--primary-dark);
}

/* 工作流程 */
.process {
    padding: 60px 0;
    background: var(--light-bg);
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    text-align: center;
    min-width: 100px;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: var(--shadow);
}

.step-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.step h4 {
    font-size: 14px;
    color: var(--text-dark);
}

.step-arrow {
    color: var(--primary-color);
    font-size: 20px;
}

/* 统计数据 */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.stats .section-title {
    color: var(--white);
}

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

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

.stat-item i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 16px;
    opacity: 0.9;
}

/* 客户评价 */
.testimonials {
    padding: 60px 0;
    background: var(--white);
}

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

.testimonial-card {
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.rating {
    color: #FFC107;
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-style: italic;
}

.author {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.author .name {
    font-weight: 600;
    display: block;
    color: var(--text-dark);
}

.author .company {
    font-size: 13px;
    color: var(--text-light);
}

/* 信任标识 */
.trust-badges {
    padding: 50px 0;
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

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

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

.badge-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

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

/* 页脚 */
.main-footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 50px 0 20px;
}

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

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
}

.contact-info {
    font-size: 14px;
    line-height: 2;
    color: rgba(255,255,255,0.7);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.footer-bottom a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-slider {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-slider {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .features .container,
    .trust-badges .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .top-bar-left span {
        font-size: 11px;
    }
    
    .features .container,
    .trust-badges .container,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.capability-box,
.testimonial-card {
    animation: fadeIn 0.5s ease-out;
}
