/* 从index.html中提取的公共样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5490;
    --primary-dark: #0e3965;
    --secondary-color: #f47920;
    --secondary-light: #ff9d5c;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--white);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.75rem;
    margin-left: 0.2rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    padding: 0;
    min-width: 950px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1.5rem;
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0.8rem;
    transform: translateX(-50%) translateY(0);
}

.dropdown-sidebar {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f1f3 100%);
    width: 280px;
    padding: 2rem 0;
    border-right: 1px solid rgba(0,0,0,0.08);
    position: relative;
}

.dropdown-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(26,84,144,0.1), transparent);
}

.dropdown-sidebar h4 {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.dropdown-sidebar h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 2rem;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.secondary-menu {
    list-style: none;
}

.secondary-menu-item {
    position: relative;
    margin: 0.3rem 0;
}

.secondary-menu-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.secondary-menu-item > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.secondary-menu-item > a::after {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--secondary-color);
}

.secondary-menu-item:hover > a,
.secondary-menu-item.active > a {
    background: rgba(26,84,144,0.06);
    color: var(--primary-color);
    padding-left: 2.5rem;
}

.secondary-menu-item:hover > a::after,
.secondary-menu-item.active > a::after {
    opacity: 1;
    transform: translateX(0);
}

.dropdown-content {
    flex: 1;
    padding: 2rem;
    display: none;
}

.dropdown-content.active {
    display: block;
}

.tertiary-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tertiary-menu-item {
    padding: 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tertiary-menu-item:hover {
    background: #f0f7ff;
}

.tertiary-menu-item h5 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.tertiary-menu-item p {
    color: var(--medium-gray);
    font-size: 0.85rem;
    line-height: 1.4;
}

.more-services-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
}

.more-services-link:hover {
    gap: 0.8rem;
}

.more-services-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.more-services-link:hover::after {
    transform: translateX(3px);
}

.cta-button {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: var(--white);
    padding: 0.6rem 1.8rem;
    border-radius: 25px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    cursor: pointer;
    position: relative;
    width: 30px;
    height: 24px;
}

.mobile-menu span {
    position: absolute;
    display: block;
    width: 100%;
    height: 3px;
    background: var(--dark-gray);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu span:nth-child(1) {
    top: 0;
}

.mobile-menu span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu span:nth-child(3) {
    bottom: 0;
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
    transform-origin: center;
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 50%;
    transform-origin: center;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--dark-gray), #1a1a1a);
    color: var(--white);
    padding: 4rem 5% 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--secondary-light);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 5px;
}

.qr-code {
    width: 120px;
    height: 120px;
    background: var(--white);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 120px;
    height: 120px;
    background-image: url('/img/loading.gif');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.loading-text {
    margin-top: 20px;
    color: var(--medium-gray);
    font-size: 14px;
    font-weight: 500;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1001;
    transition: width 0.3s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    font-size: 1.5rem;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* 公共组件样式 */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--medium-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .qr-code {
        margin: 1rem auto;
    }

    .dropdown-menu {
        display: none !important;
    }

    .section-title {
        font-size: 2rem;
    }
}