@charset "UTF-8";

/* ==========================================================================
   CSS Variables & Theme
   ========================================================================== */
:root {
    --color-primary: #0A2540; /* Deep Blue */
    --color-secondary: #C5A059; /* Gold */
    --color-secondary-hover: #D5B069;
    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-bg-light: #F8FAFC;
    --color-bg-white: #FFFFFF;
    --color-border: #E2E8F0;
    
    --font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--color-text-main);
    background-color: var(--color-bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-primary);
}

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

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
    background: linear-gradient(to right, var(--color-primary), #1a426b);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

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

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

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-item svg {
    width: 16px;
    height: 16px;
    fill: var(--color-secondary);
    filter: drop-shadow(0 1px 2px rgba(197, 160, 89, 0.4));
}

.top-bar-right a.top-bar-item {
    color: var(--color-secondary);
    font-weight: 600;
    padding: 4px 15px;
    border: 1px solid var(--color-secondary);
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.top-bar-right a.top-bar-item:hover {
    background: var(--color-secondary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(197, 160, 89, 0.4);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

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

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

.logo img {
    height: 42px;
    max-width: 100%;
    object-fit: contain;
}

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

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-main);
    padding: 10px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: var(--transition);
    border-radius: 2px;
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #051320;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 3fr 2fr 5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand .footer-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    margin-bottom: 25px;
    /* Removed filter to keep original logo colors */
}

.footer-brand p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.footer-title {
    color: var(--color-bg-white);
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-secondary);
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-contact-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.footer-contact-wrap ul {
    flex: 1;
}

.footer-contact li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact svg {
    width: 20px;
    height: 20px;
    fill: var(--color-secondary);
    flex-shrink: 0;
}

.footer-qr {
    text-align: center;
    width: 120px;
    flex-shrink: 0;
}

.footer-qr .qr-box {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: bold;
    border: 2px solid var(--color-border);
    margin-bottom: 10px;
}

.footer-qr p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Buttons & Utilities
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary), #e0b96b);
    color: var(--color-bg-white);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-bg-white);
    color: var(--color-bg-white);
}

.btn-outline:hover {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ==========================================================================
   Floating Toolbar
   ========================================================================== */
.floating-toolbar {
    position: fixed;
    right: 25px;
    bottom: 120px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-item {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), #1a426b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.3);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.float-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-secondary), #e0b96b);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.float-item svg {
    width: 24px;
    height: 24px;
    fill: var(--color-bg-white);
    transition: transform 0.4s ease;
    z-index: 1;
    position: relative;
}

.float-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.4);
}

.float-item:hover::before {
    opacity: 1;
}

.float-item:hover svg {
    transform: scale(1.1);
}

.float-popup {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    padding: 12px 24px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--color-border);
}

.float-popup::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent var(--color-bg-white);
}

.float-item:hover .float-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.qr-popup {
    padding: 15px;
    text-align: center;
}

.qr-popup .qr-placeholder {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: bold;
    border: 1px solid var(--color-border);
}

.qr-popup span {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.back-to-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 40px;
    font-weight: 800;
    background: linear-gradient(to right, #9e7a20, #cfac4c, #705510, #e6c55c, #9e7a20);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: goldShine 5s linear infinite;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

@keyframes goldShine {
    to {
        background-position: 200% center;
    }
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

.section-title p {
    color: var(--color-text-muted);
    font-size: 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg-white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease-in-out;
    }
    
    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-link {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav-link::after {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
}
