/* 新增现代UI样式 */

/* 色彩变量 */
:root {
  --primary: #2c3e50;
  --secondary: #3498db;
  --accent: #e74c3c;
  --light: #ecf0f1;
  --dark: #2c3e50;
  --text: #34495e;
  --text-light: #7f8c8d;
}

/* 现代字体栈 */
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', system-ui, sans-serif;
    line-height: 1.8;
    color: var(--text);
    background-color: #f9f9f9;
}

/* 增强的导航栏 */
header {
    background-color: var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 导航容器样式 */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* 导航主体样式 */
.nav-main-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    margin-left: 2rem;
    width: 100%;
}

/* 导航链接列表样式 */
.nav-links-v2 {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 2rem !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
}

.nav-links-v2 li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-links-v2 a {
    display: inline-block !important;
    padding: 10px 20px !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
}

.nav-links-v2 a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px) !important;
}

.nav-links-v2 li {
    margin: 0;
}

.nav-links-v2 a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-links-v2 a:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* 导航操作区域样式 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 响应式菜单按钮 */
.menu-toggle-v2 {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* 主题切换按钮样式 */
.theme-toggle-v2 {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.theme-toggle-v2:hover {
    transform: rotate(180deg);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-main-v2 {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--primary);
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-main-v2.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links-v2 {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .nav-links-v2 a {
        display: block;
        padding: 0.8rem 1rem;
    }

    .menu-toggle-v2 {
        display: block;
    }
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 32px;
    margin-right: 12px;
    background-color: var(--accent);
    border-radius: 6px;
    transform: rotate(45deg);
}

.nav-links a {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-links a:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* 现代卡片设计 */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* 区块标题样式 */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin-top: 1rem;
    border-radius: 2px;
}

/* 响应式网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* 增强的页脚 */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.footer-links h3 {
    color: var(--light);
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #bdc3c7;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* 轮播图增强 */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.slide-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--accent);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}