* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #00d4ff;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* 导航栏样式 */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 5%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 5px;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}

header::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}

header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

header p {
    font-size: 20px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    color: var(--dark-color);
}

.intro-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: '📊';
    position: absolute;
    top: 10%;
    right: 10%;
    font-size: 100px;
    opacity: 0.05;
    z-index: 0;
}

.intro-section h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 32px;
    position: relative;
    z-index: 1;
}

.intro-section p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--dark-color);
    position: relative;
    z-index: 1;
}

.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 24px;
}

.feature-card p {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.7;
}

.cta-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin: 60px 0;
}

.cta-section h2 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 36px;
}

.cta-section p {
    margin-bottom: 40px;
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 40px 20px;
    color: var(--dark-color);
    margin-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-links {
        gap: 1.5rem;
    }
    
    header h1 {
        font-size: 36px;
    }
    
    .intro-section, .cta-section {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    /* 移动端导航栏 */
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.active {
        max-height: 500px;
    }
    
    .nav-links li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        text-align: left;
    }
    
    .nav-actions {
        display: none;
    }
    
    header h1 {
        font-size: 28px;
    }
    
    header p {
        font-size: 16px;
    }
    
    .intro-section h2 {
        font-size: 24px;
    }
    
    .intro-section::before {
        display: none;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 15px;
    }
    
    header, .intro-section, .cta-section {
        padding: 30px 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

/* Word文档预览页面特定样式 */
.doc-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin: 40px 0 20px;
    text-align: center;
}

.doc-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.doc-controls, .controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.view-controls {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 10px 20px;
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.view-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: var(--primary-color);
}

.page-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-info {
    font-size: 14px;
    color: #666;
}

.nav-btn {
    padding: 10px 15px;
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.nav-btn:hover:not(:disabled) {
    background-color: #f0f0f0;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.content-area {
    display: flex;
    min-height: 600px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.outline-panel {
    width: 300px;
    background-color: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 20px;
    overflow-y: auto;
    display: none;
}

.outline-panel.active {
    display: block;
}

.outline-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.outline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.outline-list li {
    margin-bottom: 8px;
}

.outline-list a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.2s;
    font-size: 14px;
}

.outline-list a:hover {
    background-color: #e9ecef;
}

.outline-h1 {
    font-weight: bold;
}

.outline-h2 {
    margin-left: 15px;
}

.outline-h3 {
    margin-left: 30px;
    font-size: 13px;
}

.preview-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.file-name {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

/* 分页视图样式 */
.page-view {
    display: none;
}

.page-view.active {
    display: block;
}

.page {
    position: relative;
    background-color: white;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    min-height: 1000px;
}

.page-number {
    position: absolute;
    bottom: 20px;
    right: 40px;
    font-size: 14px;
    color: #666;
}

/* 连续视图样式 */
.continuous-view {
    display: none;
    max-width: 800px;
    margin: 0 auto;
}

.continuous-view.active {
    display: block;
}

/* 加载和错误状态 */
.loading {
    text-align: center;
    padding: 100px 20px;
    color: #666;
    font-size: 18px;
}

.error {
    color: #dc3545;
    text-align: center;
    padding: 50px 20px;
    font-size: 16px;
}

/* Word文档样式模拟 */
.word-content h1 {
    font-size: 36px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 20px;
    color: #000;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #000;
}

.word-content h2 {
    font-size: 28px;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #000;
}

.word-content h3 {
    font-size: 22px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 12px;
    color: #000;
}

.word-content p {
    line-height: 1.5;
    margin-bottom: 12px;
    text-align: justify;
    color: #000;
}

.word-content ul, .word-content ol {
    margin-bottom: 15px;
    padding-left: 35px;
}

.word-content li {
    line-height: 1.5;
    margin-bottom: 6px;
}

.word-content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
    font-size: 14px;
}

.word-content th {
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
    font-weight: bold;
}

.word-content td {
    border: 1px solid #ddd;
    padding: 8px 12px;
}

.word-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.word-content blockquote {
    border-left: 4px solid #ccc;
    padding-left: 15px;
    margin: 15px 0;
    color: #666;
    font-style: italic;
}

/* 文件上传页面样式 */
.upload-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin: 40px 0;
    text-align: center;
}

.upload-area {
    margin-bottom: 30px;
    padding: 50px 30px;
    border: 3px dashed #ccc;
    border-radius: 16px;
    background-color: #fafafa;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: #f0f8ff;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

#fileInput {
    display: none;
}

.upload-btn {
    display: inline-block;
    padding: 18px 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.file-info {
    margin-top: 15px;
    color: #666;
    font-size: 16px;
}

.upload-info {
    color: #666;
    font-size: 14px;
    margin-top: 20px;
}