/* 共享样式 - 顶部、底部和英雄区域 */


/* 基础样式变量 */
:root {
    --bs-blue: #4a148c;
    --bs-indigo: #7c4dff;
    --bs-purple: #9c27b0;
    --bs-pink: #e91e63;
    --bs-red: #f44336;
    --bs-orange: #ff9800;
    --bs-yellow: #ffeb3b;
    --bs-green: #4caf50;
    --bs-teal: #009688;
    --bs-cyan: #00bcd4;
    --bs-black: #1a1919;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-primary: #0f1b3d;
    --bs-secondary: #6c757d;
    --bs-success: #4caf50;
    --bs-info: #00bcd4;
    --bs-warning: #ffeb3b;
    --bs-danger: #f44336;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
}

/* 基础重置 */
*, ::after, ::before {
    box-sizing: border-box;
}

body {
    background: #0f1b3d;
    color: white;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    min-height: 100vh;
}

/* 容器样式 */
.container {
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
        margin: auto;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* 网格系统 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 992px) {
    .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

/* 按钮重新设计：默认胶囊形（Pill），轻量交互，无繁重特效 */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    border-radius: 999px; /* 默认胶囊形 */
    border: none;
    text-decoration: none;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.08s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

/* 形状可选：保留默认胶囊，同时提供圆角/方角变体 */
.btn--pill { border-radius: 999px; }
.btn--rounded { border-radius: 12px; }
.btn--square { border-radius: 6px; }

/* 图标容器（可选） */
.btn-icon { display: inline-block; line-height: 0; }

/* Focus 可见环 */
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 235, 59, 0.35), 0 6px 20px rgba(0,0,0,0.2);
}

/* 按下态：轻微按压 */
.btn:active { transform: translateY(1px) scale(0.99); }

/* 禁用态 */
.btn:disabled, .btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

/* 主按钮：黄色（保持现有配色），加入细微阴影 */
.btn-primary {
    background-color: #ffeb3b;
    color: #1a1a1a;
    box-shadow: 0 6px 16px rgba(253, 216, 53, 0.35);
}

.btn-primary:hover {
    background-color: #fdd835;
    color: #1a1a1a;
    box-shadow: 0 10px 22px rgba(253, 216, 53, 0.45);
}

/* 成功按钮：绿色（保持现有配色），加入细微阴影 */
.btn-success {
    background-color: #4caf50;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.35);
}

.btn-success:hover {
    background-color: #45a049;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(76, 175, 80, 0.45);
}

/* 尺寸变体：与现有 .btn-lg 兼容并新增小号 */
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }

/* 工具类 */
.rounded-2 {
    border-radius: 2px;
}

.rounded-5 {
    border-radius: 2rem;
}

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

.text-white {
    color: white;
}

.text-decoration-none {
    text-decoration: none;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.me-2 {
    margin-right: 0.5rem;
}

.me-3 {
    margin-right: 1rem;
}

.ms-3 {
    margin-left: 1rem;
}

.my-2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-5 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-4 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.bg-primary {
    background: #0f1b3d;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* 标题样式 */
h1, h2, h3, h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
}

h1 {
    font-size: calc(1.375rem + 1.5vw);
}

@media (min-width: 1200px) {
    h1 {
        font-size: 2.5rem;
    }
}

h2 {
    font-size: calc(1.325rem + 0.9vw);
}

@media (min-width: 1200px) {
    h2 {
        font-size: 2rem;
    }
}

h3 {
    font-size: calc(1.3rem + 0.6vw);
}

@media (min-width: 1200px) {
    h3 {
        font-size: 1.75rem;
    }
}

h4 {
    font-size: calc(1.275rem + 0.3vw);
}

@media (min-width: 1200px) {
    h4 {
        font-size: 1.5rem;
    }
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: rgba(13, 110, 253, 1);
    text-decoration: underline;
}

img {
    vertical-align: middle;
}

/* 顶部导航样式 */
header {
    padding: 0.25rem 0; /* slight whitespace */
    background-color: transparent;
}

header .container {
    position: relative;
}

header .d-flex {
    align-items: center;
    justify-content: space-between;
}

header img {
    width: 100px;
    height: 100px;
}

/* 英雄区域样式 */
.hero-section {
    padding: 1.5rem 0;
    background-color: transparent;
    margin: 0.5rem 0;
}

.hero-section h1 {
    color: white;
    margin-bottom: 0.75rem;
}

.hero-section p {
    color: white;
    margin-bottom: 1rem;
}

.hero-section .btn {
    margin-top: 0.75rem;
}

/* 底部样式 */
footer {
    padding: 1.5rem 0 0.75rem;
    background: rgba(15, 27, 61, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: #ccc;
    text-decoration: underline;
}

/* 导航菜单样式 - 带下拉子菜单 */
.nav-menu {
    background: #0f1b3d;
    padding: 0; /* keep compact */
    margin: 0.25rem 0; /* slight whitespace */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(15, 27, 61, 0.3), 0 1px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 0.5rem;
}

.nav-menu .nav-item {
    position: relative;
    display: inline-block;
    margin: 0 0.05rem;
}

.nav-menu .nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 0.6rem 1.25rem; /* slightly wider for pill look */
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    border-radius: 999px; /* pill shape */
    margin: 0.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
}

.nav-menu .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.6s ease;
}

.nav-menu .nav-link:hover::before {
    left: 100%;
}

.nav-menu .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.3), 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

/* 下拉菜单样式 */
.nav-menu .dropdown {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #0f1b3d;
    min-width: 200px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(15, 27, 61, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0;
}

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

.nav-menu .dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #0f1b3d;
}

.nav-menu .dropdown-item {
    color: #ffffff;
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0.25px;
    font-weight: 500;
    position: relative;
    margin: 0.05rem 0.25rem;
    border-radius: 6px;
    border-bottom: none;
}

.nav-menu .dropdown-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.nav-menu .dropdown-item:last-child {
    margin-bottom: 0;
}

.nav-menu .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #9c27b0;
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-menu .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.2);
}

.nav-menu .dropdown-item:hover::before {
    transform: scaleY(1);
}

/* 下拉箭头 - 桌面端 */
@media (min-width: 769px) {
    .nav-menu .nav-link.has-dropdown::after {
        content: '▼';
        margin-left: 0.5rem;
        font-size: 0.7rem;
        transition: transform 0.3s ease;
    }

    .nav-menu .nav-item:hover .nav-link.has-dropdown::after {
        transform: rotate(180deg);
    }
}

/* 汉堡包菜单样式 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: transparent;
    border-radius: 0;
    border: none;
    transition: none;
    box-shadow: none;
    position: relative;
    overflow: visible;
}



.hamburger:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: #ffffff;
    margin: 2.5px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 7px);
    background: #ff6b6b;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -7px);
    background: #ff6b6b;
}

/* 移动端菜单容器 */
.mobile-nav-toggle {
    display: none;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
}

.mobile-nav-toggle span {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mobile-nav-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* 桌面端显示导航内容 */
@media (min-width: 769px) {
    .mobile-nav-toggle {
        display: none !important;
    }
    
    .mobile-nav-content {
        display: flex !important;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-menu {
        position: relative;
        border: none; /* remove border on mobile */
        max-width: 100vw;
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
        .mobile-nav-content {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: rgba(15, 27, 61, 0.95);
            border-radius: 0 0 15px 15px;
            box-shadow: none; /* remove extra shadow/border effect */
            z-index: 1002;
            flex-direction: column;
            padding: 1.5rem 0;
            border: none; /* ensure no border */
            backdrop-filter: blur(15px);
            max-width: 100vw;
            box-sizing: border-box;
            overflow-x: hidden;
        }
    
    .mobile-nav-content.show {
        display: flex;
        animation: none; /* remove dropdown animation */
    }
    
    /* remove slideDown keyframes (no longer used) */
    
         .nav-menu .nav-item {
         width: 100%;
         margin: 0.375rem 0;
         display: flex;
         flex-direction: column;
         align-items: center;
     }
    
         .nav-menu .nav-link {
         margin: 0;
         text-align: center;
         padding: 0.9rem 1.5rem; /* compact but pill */
         display: block;
         border-radius: 999px; /* pill shape on mobile */
         background: rgba(255, 255, 255, 0.05);
         border: none; /* remove mobile nav-link border */
         transition: none; /* remove hover/effect transitions */
         width: calc(100% - 2rem);
         max-width: 280px;
         backdrop-filter: blur(5px);
         box-sizing: border-box;
     }
    
         .nav-menu .nav-link:hover {
         background: rgba(255, 255, 255, 0.15);
         transform: none; /* remove hover scale effect */
     }
    
         .nav-menu .dropdown {
         position: relative;
         opacity: 1;
         visibility: visible;
         transform: none;
         box-shadow: none; /* remove dropdown shadow */
         margin: 0.5rem auto;
         border-radius: 8px;
         max-height: 0;
         overflow: hidden;
         transition: none; /* remove dropdown expand animation */
         background: rgba(15, 27, 61, 0.9);
         border: none; /* ensure no border */
         width: 100%;
         display: flex;
         flex-direction: column;
         align-items: center;
         margin-left: auto !important;
         margin-right: auto !important;
         backdrop-filter: blur(10px);
         max-width: 100vw;
         box-sizing: border-box;
     }
    
    .nav-menu .nav-item.active .dropdown {
        max-height: 1000px; /* open instantly without animation */
        padding: 0.5rem 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-left: auto !important;
        margin-right: auto !important;
        background: rgba(15, 27, 61, 0.9);
        border: none; /* ensure no border */
        box-shadow: none; /* remove active dropdown shadow */
        backdrop-filter: blur(10px);
        max-width: 100vw;
        box-sizing: border-box;
    }
    
        .nav-menu .dropdown-item {
            padding: 0.75rem 1rem;
            margin: 0.25rem auto;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.1);
            transition: none; /* remove item hover animation */
            color: #ffffff !important;
            text-decoration: none !important;
            display: block !important;
            font-size: 0.85rem;
            font-weight: 500;
            border: none; /* ensure no border */
            text-align: center !important;
            width: 90%;
            max-width: 250px;
            margin-left: auto !important;
            margin-right: auto !important;
            backdrop-filter: blur(5px);
            position: relative;
            box-sizing: border-box;
        }
     
    
         .nav-menu .dropdown-item:hover {
         background: rgba(255, 255, 255, 0.2);
         transform: none; /* remove hover transform */
     }
    
    /* 移动端下拉箭头 */
    .nav-menu .nav-link.has-dropdown::after {
        transition: none;
        content: '▼';
        margin-left: 0.5rem;
        font-size: 0.7rem;
        display: inline-block;
    }
    
    .nav-menu .nav-item.active .nav-link.has-dropdown::after {
        transform: none;
    }
    
    /* 确保移动端下拉菜单项可见 */
    .nav-menu .nav-item.active .dropdown-item {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }
    
    /* 移动端活跃状态的主菜单项样式 */
    .nav-menu .nav-item.active > .nav-link {
        background: rgba(255, 255, 255, 0.15);
        color: #ffffff !important;
    }
    
    /* 强制确保移动端下拉菜单文字可见 */
    @media (max-width: 768px) {
        .nav-menu .dropdown-item {
            color: #ffffff !important;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
            font-weight: 600 !important;
            line-height: 1.4;
            text-align: center !important;
            margin: 0.25rem auto !important;
            margin-left: auto !important;
            margin-right: auto !important;
            width: 90% !important;
            max-width: 250px !important;
            display: block !important;
        }
        
        .nav-menu .dropdown-item:hover,
        .nav-menu .dropdown-item:focus,
        .nav-menu .dropdown-item:active {
            color: #ffffff !important;
            background: rgba(255, 255, 255, 0.25) !important;
        }
        
        .nav-menu .dropdown {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            width: 100% !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }
        
        .nav-menu .nav-item.active .dropdown {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            width: 100% !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }
    }
    
     header .d-flex {
         flex-direction: row;
         gap: 1rem;
         justify-content: space-between;
         align-items: center;
     }
    
    .hero-section {
        text-align: center;
    }
}

/* 英雄区域按钮统一黄色，并与图片留出间距 */
.hero-section .btn {
    background: linear-gradient(135deg, #ffeb3b 0%, #fdd835 100%);
    color: #1a1a1a;
    border: none;
}
.hero-section .btn:hover {
    background: #fdd835;
    color: #1a1a1a;
}

/* 桌面端：按钮与图片左右留白 */
@media (min-width: 992px) {
    .hero-section .btn { margin-right: 1rem; }
    .hero-section .img-fluid { margin-left: 1rem; }
}

/* 移动端：图片与按钮上下留白 */
@media (max-width: 768px) {
    .hero-section .img-fluid { margin-top: 1rem; }
}


