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


/* 基础样式变量 */
: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: #4a148c;
    --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: #4a148c;
    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%;
    }
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    border: none;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    font-weight: 400;
    line-height: 1.5;
}

.btn-primary {
    background-color: #7c4dff;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #6a3de8;
}

.btn-success {
    background-color: #4caf50;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #45a049;
}

.btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border-radius: 0.5rem;
}

/* 工具类 */
.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: #4a148c;
}

.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: 1rem 0;
    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(74, 20, 140, 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: #4a148c;
    padding: 0.25rem 0;
    margin: 0.75rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(74, 20, 140, 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 1rem;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    border-radius: 8px;
    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: #4a148c;
    min-width: 200px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(74, 20, 140, 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 #4a148c;
}

.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: #4a148c;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(74, 20, 140, 0.3);
    position: relative;
    overflow: hidden;
}

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

.hamburger:hover::before {
    left: 100%;
}

.hamburger:hover {
    background: #9c27b0;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.4);
}

.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;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-nav-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(74, 20, 140, 0.9);
        border-radius: 0 0 15px 15px;
        box-shadow: 0 12px 35px rgba(74, 20, 140, 0.5), 0 4px 15px rgba(0, 0, 0, 0.3);
        z-index: 1002;
        flex-direction: column;
        padding: 1.5rem 0;
        border: 2px solid rgba(255, 255, 255, 0.1);
        border-top: none;
        backdrop-filter: blur(15px);
    }
    
    .mobile-nav-content.show {
        display: flex;
        animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
         .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: 1rem 1.5rem;
         display: block;
         border-radius: 10px;
         background: rgba(255, 255, 255, 0.05);
         border: 1px solid rgba(255, 255, 255, 0.12);
         transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
         width: calc(100% - 2rem);
         max-width: 280px;
         backdrop-filter: blur(5px);
     }
    
         .nav-menu .nav-link:hover {
         background: rgba(255, 255, 255, 0.15);
         transform: scale(1.02);
         border-color: rgba(255, 255, 255, 0.25);
     }
    
         .nav-menu .dropdown {
         position: relative;
         opacity: 1;
         visibility: visible;
         transform: none;
         box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
         margin: 0.5rem auto;
         border-radius: 8px;
         max-height: 0;
         overflow: hidden;
         transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
         background: rgba(74, 20, 140, 0.85);
         border: 1px solid rgba(255, 255, 255, 0.15);
         width: 100%;
         display: flex;
         flex-direction: column;
         align-items: center;
         margin-left: auto !important;
         margin-right: auto !important;
         backdrop-filter: blur(10px);
     }
    
    .nav-menu .nav-item.active .dropdown {
        max-height: 300px;
        padding: 0.5rem 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
         .nav-menu .dropdown-item {
         padding: 0.75rem 1rem;
         margin: 0.25rem auto;
         border-radius: 6px;
         background: rgba(255, 255, 255, 0.08);
         transition: all 0.3s ease;
         color: #ffffff !important;
         text-decoration: none !important;
         display: block !important;
         font-size: 0.85rem;
         font-weight: 500;
         border: 1px solid rgba(255, 255, 255, 0.1);
         text-align: center !important;
         width: 90%;
         max-width: 250px;
         margin-left: auto !important;
         margin-right: auto !important;
         backdrop-filter: blur(5px);
         position: relative;
     }
     
     .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:hover {
         background: rgba(255, 255, 255, 0.2);
         transform: scale(1.03);
         border-color: rgba(255, 255, 255, 0.2);
         color: #ffffff !important;
     }
    
    /* 移动端下拉箭头动画 */
    .nav-menu .nav-link.has-dropdown::after {
        transition: transform 0.3s ease;
        content: '▼';
        margin-left: 0.5rem;
        font-size: 0.7rem;
        display: inline-block;
    }
    
    .nav-menu .nav-item.active .nav-link.has-dropdown::after {
        transform: rotate(180deg);
    }
    
    /* 确保移动端下拉菜单项可见 */
    .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.2);
        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: column;
        gap: 1rem;
    }
    
    .hero-section {
        text-align: center;
    }
}


