/* 全局样式 */
:root {
    --primary-color: #165DFF;
    --primary-dark: #0E42D2;
    --primary-light: #4080FF;
    --bg-light: #F7F8FA;
    --text-dark: #1D2129;
    --text-muted: #86909C;
    --border-color: #E5E6EB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
}

/* 首页Hero区域 */
.hero-section {
    background: linear-gradient(135deg, #165DFF 0%, #0E42D2 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 56px;
}

.hero-section h1 {
    animation: fadeInDown 1s;
}

.hero-section .lead {
    font-size: 1.3rem;
    opacity: 0.95;
    animation: fadeInUp 1s;
}

.hero-image {
    animation: fadeIn 1.5s;
}

.hero-image img {
    border: 4px solid rgba(255,255,255,0.3);
    transition: transform 0.3s;
}

.hero-image img:hover {
    transform: scale(1.02);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(22, 93, 255, 0.3);
}

.btn-outline-light {
    border: 2px solid white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* 功能卡片 */
.features-cards {
    background: var(--bg-light);
}

.feature-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1) !important;
}

.feature-card .icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.feature-card .icon-box i {
    font-size: 2.5rem;
    color: white;
}

.feature-card .card-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 1rem;
}

/* 优势亮点 */
.advantages-section ul li {
    font-size: 1.1rem;
    padding: 0.5rem 0;
}

/* 功能详解 */
.features-detail {
    background: white;
}

.feature-block h3 {
    color: var(--text-dark);
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.feature-detail-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s;
}

.feature-detail-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.1);
}

.accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
    background-color: var(--bg-light);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* 使用教程 */
.tutorial-section .card-header {
    font-weight: 600;
}

/* 下载页面 */
.download-section {
    background: white;
}

#downloadBtn {
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

#downloadBtn:hover {
    background: var(--primary-dark);
}

/* 关于我们 */
.about-section h4 {
    color: var(--primary-color);
    font-weight: 700;
}

.about-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.about-section a:hover {
    text-decoration: underline;
}

/* 底部 */
.footer {
    background: #1D2129 !important;
}

.footer a {
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--primary-light) !important;
}

/* 动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .feature-card .icon-box {
        width: 60px;
        height: 60px;
    }
    
    .feature-card .icon-box i {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .d-flex.gap-3 a {
        width: 100%;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-weight: 600;
}

/* 提示框样式 */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-warning {
    background-color: #FFF7E8;
    color: #FF7D00;
}

.alert-info {
    background-color: #E8F7FF;
    color: #0E42D2;
}

.alert-success {
    background-color: #E8FFEA;
    color: #00B42A;
}

/* 加载动画（可选） */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 平滑过渡 */
* {
    transition: color 0.2s, background-color 0.2s;
}

/* 禁用过渡的元素 */
.navbar-toggler,
.modal,
.dropdown-menu {
    transition: none;
}
