/* 基础重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* CSS变量定义 */
:root {
    --primary: #4a6cf7;
    --primary-light: #7b93ff;
    --primary-ultralight: #f0f2ff;
    --primary-gradient: linear-gradient(135deg, #4a6cf7 0%, #7c4dff 100%);
    --primary-hover: linear-gradient(135deg, #3a56d8 0%, #6a3dcf 100%);
    --light-gray: #F9F9F9;
    --dark-gray: #1D2B3A;
    --elegant-black: #2A2A2A;
    --elegant-gray: #555555;
    --white: #FFFFFF;
    --border: #E0E7FF;
    --shadow: 0 4px 20px rgba(74, 108, 247, 0.08);
    --shadow-hover: 0 8px 30px rgba(74, 108, 247, 0.15);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --gradient-start: #4a6cf7;
    --gradient-end: #7c4dff;
    --light-bg: #f8f9ff;
    --gray-text: #555566;
    --dark-text: #1a1a2e;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --primary-glow: 0 0 20px rgba(74, 108, 247, 0.3);
}

/* 基础布局 */
body {
    color: var(--elegant-black);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

/* 按钮样式 */
.btn {
    padding: 0.7rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-login {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-login:hover {
    background: var(--primary-ultralight);
    transform: translateY(-2px);
}

.btn-outline {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-ultralight);
    transform: translateY(-2px);
}

.btn i {
    display: inline !important;
    color: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* 部分标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #2A2A2A;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 12px;
}

.section-header h2 i {
    font-size: 2rem;
    color: #2A2A2A;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 48px;
    width: calc(100% - 48px);
    height: 3px;
    background: linear-gradient(90deg, transparent, #4a6cf7, #7c4dff, transparent);
    border-radius: 3px;
}

.section-header p {
    color: var(--elegant-gray);
    font-size: 1.1rem;

    margin: 0 auto;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* 头部样式 */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(74, 108, 247, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.logo img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.logo span {
    font-size: 1.8rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--elegant-black);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-ultralight);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
    z-index: 1001;
}

/* 页脚样式 */
footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 0 30px;
    margin-top: -1px !important; /* 修复 Firefox 下可能出现的白线缝隙 */
    border-top: none !important;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-top: 16px;
    line-height: 1.7;
    font-size: 1rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
   
}

.footer-column a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
     font-size: 1rem;
}

.footer-column a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}
.footer-bottom p{
    font-size: 1rem;
}
/* 侧边栏样式 */
.sidebar-widget {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 5px 20px rgba(74, 108, 247, 0.1);
    transform: translateY(-2px);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #f3f4f6;
    flex-wrap: nowrap;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 1;
    white-space: nowrap;
}

.sidebar-widget h3 i {
    color: var(--primary);
    font-size: 1.1rem;
}

.view-more-link-inline {
    display: inline-flex;
    align-items: center;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.view-more-link-inline:hover {
    color: #4a6cf7;
    background: #f3f4f6;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: transparent;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0;
    border-radius: 0;
    transition: all 0.3s ease;
    border: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.view-more-btn:hover {
    color: #4a6cf7;
}

.view-more-btn i {
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.view-more-btn:hover i {
    transform: translateX(3px);
}
.view-more-btn span{
    font-size: 1rem;
}
.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f3f4f6;
    transition: var(--transition);
}

.widget-list li:last-child {
   border-bottom: 0px
}

.widget-list li:hover {
    background: #f9fafb;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 4px;
    margin: 0 -0.5rem;
}

.widget-list a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
    line-height: 1.5;
}

.widget-list a:hover {
    color: #4a6cf7;
}

.widget-list a i {
    color: #9ca3af;
    font-size: 0.85rem;
    min-width: 1rem;
}

.widget-article-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
}

.widget-article-title {
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    color: #374151;
}

.widget-article-title a {
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
}

.widget-article-title a:hover {
    color: #4a6cf7;
    transform: translateX(4px);
}

.widget-article-title a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a6cf7;
    transition: width 0.3s ease;
}

.widget-article-title a:hover::after {
    width: 100%;
}

.widget-article-title i {
    flex-shrink: 0;
    color: #9ca3af;
    font-size: 0.85rem;
}

.widget-article-date {
    font-size: 0.9rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.view-more-link {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: right;
}

.view-more-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-more-link a:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.view-more-link a i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.view-more-link a:hover i {
    transform: translateX(2px);
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    color: var(--elegant-black);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.category-list a:hover {
    color: var(--primary);
}
.category-list a span{
    font-size: 1rem;
}
.category-list a span:last-child{
    font-size: .9rem;
}
.category-count {
    background: var(--primary-ultralight);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* CTA板块样式 */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #1a2d4a 0%, #1a1a2e 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    outline: 1px solid transparent; /* 修复 Firefox 子像素渲染导致的白线 */
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(99, 102, 241, 0.08) 0%, transparent 45%);
    z-index: 1;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.cta-section p {
    font-size: 1.1rem;
    margin: 0 auto 2rem;
    opacity: 1;
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.85);
}

.cta-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
}

/* 页面标题 */
.page-title {
    padding: 7rem 0 4rem;
    background: var(--primary-gradient);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    box-shadow: 0 15px 60px rgba(74, 108, 247, 0.3);
}

.page-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
    linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
    z-index: 1;
}

.page-title::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: shimmer 3s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.page-title .container {
    position: relative;
    z-index: 2;
}

.page-title h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    color: #ffffff;
    padding-bottom: 15px;
}

.page-title h1 i {
    font-size: 3.2rem;
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.page-title h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes glow {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }
}

.page-title p {
    font-size: 1.3rem;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 1s ease-out 0.3s both;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 装饰元素 */
.page-title .decorative-element {
    position: absolute;
    z-index: 1;
    opacity: 0.6;
}

.page-title .decorative-element:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.page-title .decorative-element:nth-child(2) {
    bottom: 20%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* 文章元信息样式 */
.article-meta {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-category {
    background: #f0f4ff;
    color: #4a6cf7;
    padding: 0.3rem 0.9rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.article-date i {
    color: #4a6cf7;
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    * {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .header-container {
        padding: 0.8rem 1rem;
    }
    .mobile-toggle i {
        font-size: 1.5rem;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border);
        padding: 0;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:nth-child(odd) {
        background: #F9F9F9;
    }

    .nav-links li:nth-child(even) {
        background: var(--white);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        color: var(--elegant-black);
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }

    .nav-links a:hover, .nav-links a.active {
        color: var(--primary);
        background: var(--primary-ultralight);
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .footer-brand p {
        padding: 0 1rem;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        font-size: 1.1rem;
        padding: 0.9rem 2rem;
        text-align: center;
    }
}
