/* base.css - 通用样式 */
:root {
    --primary: #d40129;
    --primary-dark: #a8001e;
    --secondary: #4a5568;
    --accent: #ff6b35;
    --light: #f1f5f9;
    --dark: #1a202c;
    --gray: #e2e8f0;
    --white: #ffffff;
    --metal: #718096;
    --radius: 6px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

html {
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: #f0f9ff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: #ffffff;
    padding: 8px 0;
    font-size: 14px;
    margin-top: 0;
    border-top: 0;
    position: relative;
    top: 0;
}

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

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
}

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

/* Header */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 28px 0;
    gap: 60px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.logo-image:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-whatsapp {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #25D366;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: auto;
    margin-right: 16px;
    transition: color 0.2s;
}

.nav-whatsapp i {
    font-size: 1.3rem;
}

.nav-whatsapp:hover {
    color: #1ebe5b;
}

.nav-email {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 16px;
    transition: color 0.2s;
}

.nav-email i {
    font-size: 1.1rem;
}

.nav-email:hover {
    color: #0a3dad;
}

.nav-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: #003bb5;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #003bb5;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
    margin-left: auto;
}

.menu-toggle .menu-icon-close {
    display: none;
}

.menu-toggle.active .menu-icon-bars {
    display: none;
}

.menu-toggle.active .menu-icon-close {
    display: inline;
}

/* Buttons */
.btn-primary, .btn-outline, .btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    font-weight: 600;
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 500;
}

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

/* Buttons for hero with background */
.hero-with-bg .btn-primary {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--white);
}

.hero-with-bg .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    border-color: rgba(255, 255, 255, 0.9);
}

.hero-with-bg .btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Breadcrumb - Shared */
.breadcrumb {
    padding: 20px 0;
    margin: 0;
    font-size: 0.9rem;
    color: #0a3dad;
    word-break: break-word;
    overflow-wrap: break-word;
}

.breadcrumb a {
    color: #0a3dad;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #0830a0;
    text-decoration: underline;
}

.breadcrumb-sep {
    color: #999;
    margin: 0 8px;
}

.breadcrumb-current {
    color: #0a3dad;
    font-weight: 500;
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.85rem;
        line-height: 1.5;
        padding-bottom: 12px;
        overflow: visible;
    }
}

/* Main Content Area */
.main {
    background: transparent;
    position: relative;
    flex: 1 0 auto;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: #e2e8f0;
    padding: 80px 0 40px;
    margin-top: 0;
}

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

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
    margin-bottom: 18px;
    font-size: 15px;
    white-space: nowrap;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    justify-self: end;
}

.link-group-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 8px;
}

.link-group a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 15px;
}

.link-group a:hover {
    color: var(--accent);
    padding-left: 4px;
}

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

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

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
}

.social-links a:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

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

.legal-links a:hover {
    color: var(--accent);
}

/* Footer legal links */
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

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

.footer-legal a:hover {
    color: var(--accent);
}

/* Footer logo styling */
.footer .logo a {
    color: var(--white);
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.footer-logo:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Enhanced footer brand styling */
.footer-brand {
    margin-bottom: 20px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 15px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    justify-content: center;
    max-width: 250px;
}

.footer-brand .logo:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        gap: 0;
    }

    /* Top Bar mobile */
    .top-bar {
        font-size: 12px;
        padding: 6px 0;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        transition: transform 0.3s ease, opacity 0.2s ease;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 16px;
        border-bottom: 1px solid var(--gray);
    }
    
    .nav-links a.active::after {
        display: none;
    }
    
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-whatsapp {
        margin-left: 0;
        margin-right: 24px;
    }

    .nav-whatsapp span {
        display: none;
    }

    .nav-email {
        margin-right: 12px;
    }

    .nav-email span {
        display: none;
    }

    .nav-actions {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    /* Logo responsive */
    .logo-image {
        height: 35px;
    }
    
    /* Logo responsive */
    .logo-image {
        height: 35px;
    }
    
    .footer-logo {
        height: 40px;
    }
    
    /* Footer brand responsive */
    .footer-brand .logo {
        padding: 10px 14px;
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand .footer-description {
        text-align: center;
        white-space: nowrap;
    }

    .footer-brand .social-links {
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
        gap: 16px;
    }
    
    .legal-links a {
        font-size: 13px;
    }
    
    .footer-legal {
        justify-content: center;
        gap: 16px;
    }
    
    .footer-legal a {
        font-size: 13px;
    }

    /* Hide Company on mobile */
    .footer-links .link-group:nth-child(3) {
        display: none;
    }

    .footer-links {
        justify-content: center;
        text-align: center;
        grid-template-columns: repeat(2, minmax(auto, 160px));
    }

    .link-group ul {
        align-items: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}