/* 
 * AACL Website Main Styles
 * Theme: Premium, Trustworthy, Professional (Deep Blue / Gold / White)
 */

:root {
    --primary-blue: #0a192f;
    /* Deep Navy */
    --secondary-blue: #172a45;
    /* Lighter Navy for cards/sections */
    --accent-gold: #d4af37;
    /* Metallic Gold */
    --text-light: #e6f1ff;
    /* Off-white for text on dark */
    --text-dark: #333333;
    /* Dark text for light backgrounds */
    --bg-light: #f8f9fa;
    /* Very light grey for contrast sections */
    --white: #ffffff;

    --font-heading: 'Noto Serif SC', serif;
    /* Simplified Chinese Serif */
    --font-body: 'Outfit', sans-serif;
    /* Modern, Clean */

    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body), "Microsoft YaHei", sans-serif;
    /* Add fallback */
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--accent-gold);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 2px;
    /* Sharp edges for professional feel */
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-gold);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-gold {
    background-color: var(--accent-gold);
    color: var(--white);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-gold:hover {
    background-color: #b5952f;
    transform: translateY(-2px);
}

/* Header */
.site-header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.8rem 0;
    /* Slightly tighter */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Adjustment */
.logo a {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.sub-logo {
    font-weight: 400;
    font-size: 1.3rem;
    /* Increased size relative to AACL as requested */
    color: var(--accent-gold);
    margin-left: 0.8rem;
    padding-left: 0.8rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    line-height: 1;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-light);
    font-size: 1rem;
    position: relative;
    font-weight: 400;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.7)), url('../images/hero-bg.jpg') center/cover no-repeat;
    background-color: var(--primary-blue);
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.2rem;
    /* Creating more impact */
    line-height: 1.3;
    margin-bottom: 2rem;
}

.highlight-text {
    color: var(--accent-gold);
}

.hero-content .subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 300;
    max-width: 600px;
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: var(--primary-blue);
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 4rem;
    color: #666;
    font-size: 1.1rem;
}

.text-center .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 1rem auto 0;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    /* Slightly wider cards */
    gap: 2.5rem;
}

/* Cards */
.card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--accent-gold);
}

.icon-box {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

/* Comparison Section */
.bg-light {
    background-color: var(--bg-light);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    background: white;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

/* Column Balancer */
.comparison-table th:nth-child(1),
.comparison-table td:nth-child(1) {
    width: 15%;
    white-space: nowrap;
}

.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2),
.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3) {
    width: 42.5%;
}


.comparison-table th {
    background-color: var(--primary-blue);
    color: white;
    font-size: 1.1rem;
}

.comparison-table .highlight-col {
    background-color: #fcfbf5;
    /* Very subtle gold tint */
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

.comparison-table th.highlight-col {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
}

.comparison-table strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.comparison-cards-mobile {
    display: none;
    /* Desktop default */
    flex-direction: column;
    gap: 2rem;
}

.comp-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.comp-card.aacl-card {
    border-left: 5px solid var(--accent-gold);
}

.comp-card.traditional-card {
    border-left: 5px solid #ccc;
    opacity: 0.8;
}

.comp-card ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.4;
}

.comp-card .icon {
    flex-shrink: 0;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.comp-card strong {
    flex-shrink: 0;
    width: 45px;
    /* Fixed width for labels like 团队, 模式 */
    color: var(--primary-blue);
    display: inline-block;
}

/* Lifecycle Tabs */
.lifecycle-container {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.lifecycle-tabs {
    display: flex;
    background: #f1f2f5;
}

.tab-btn {
    flex: 1;
    padding: 1.5rem;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #e9ecef;
    color: var(--primary-blue);
}

.tab-btn.active {
    background: white;
    color: var(--primary-blue);
    border-bottom: 3px solid var(--accent-gold);
}

.lifecycle-content {
    padding: 3rem;
    min-height: 300px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

.content-flex {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.text-block {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.text-block h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

.text-block ul {
    list-style: none;
    display: inline-block;
    /* Allows the list block to be centered */
    text-align: left;
    /* Interior text remains left-aligned */
}

.text-block li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.text-block li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.visual-block {
    flex: 1;
    height: 250px;
    background: url('../images/content-bg.jpg') center/cover no-repeat;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer & Dark Section */
.dark-section {
    background-color: var(--primary-blue);
    color: var(--white);
}

.site-footer {
    background-color: #050d1a;
    /* Darker than primary for footer */
    color: #8892b0;
    padding: 4rem 0;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info .logo {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: block;
}

.sub-logo-footer {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-left: 10px;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

/* QR Code Section */
/* Contact Section Refined */
.contact-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto 0;
    align-items: stretch;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    flex: 1;
    text-align: center;
    backdrop-filter: blur(10px);
}

.wechat-card {
    max-width: 350px;
}

.wechat-id {
    margin-top: 1rem;
    font-family: monospace;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.form-card {
    text-align: left;
}

.form-card h3 {
    margin-bottom: 0.5rem;
    color: var(--white);
}

.form-desc {
    color: #a0aec0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.inquiry-form .form-group {
    margin-bottom: 1.2rem;
}

.inquiry-form input,
.inquiry-form textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.4);
}

.btn-block {
    width: 100%;
    margin-top: 0.5rem;
}

/* Mobile Responsive For Contact */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        width: 100%;
        max-width: 100%;
    }
}


/* FAB */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.fab-btn {
    width: 60px;
    height: 60px;
    background-color: transparent;
    /* Removed default green to show PNG */
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
    transition: var(--transition);
    padding: 0;
    overflow: hidden;
    /* Ensure image respects border radius */
}

.fab-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fab-btn:hover {
    transform: scale(1.1);
}

.fab-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.fab-container:hover .fab-tooltip {
    opacity: 1;
    right: 75px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        background: linear-gradient(135deg, rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.8)), url('../images/hero-bg.jpg') center/cover no-repeat !important;
        height: auto;
        min-height: 100vh;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--primary-blue);
        padding: 2rem;
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .comparison-table-wrapper {
        display: none;
        /* Hide table on mobile */
    }

    .comparison-cards-mobile {
        display: flex;
        /* Show cards on mobile */
    }

    .lifecycle-tabs {
        flex-direction: column;
    }

    .tab-btn {
        text-align: left;
        padding: 1rem;
        border-bottom: 1px solid #ddd;
    }

    .tab-btn.active {
        border-left: 4px solid var(--accent-gold);
        border-bottom: 1px solid #ddd;
    }

    .content-flex {
        flex-direction: column;
    }

    .visual-block {
        width: 100%;
        height: 200px;
        order: -1;
        /* Image first on mobile */
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 1rem;
    }

    /* Smaller FAB on Mobile */
    .fab-container {
        bottom: 20px;
        right: 20px;
    }

    .fab-btn {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .fab-icon-img {
        width: 100%;
        height: 100%;
    }
}