/**
 * ================================================================
 * AI+ 软件工程文档模板系统 - 样式库
 * ================================================================
 * 版本: 1.0.0
 * 作者: AI+软件工程团队
 * 描述: 精美的渐变风格文档模板系统,支持密码保护、左侧导航、丰富组件
 * ================================================================
 */

/* ========== 全局样式 ========== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
                 "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background: linear-gradient(135deg, #fff5f5 0%, #fff 50%, #fff9f9 100%);
    background-attachment: fixed;
    color: #222;
    margin: 0;
    padding: 20px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== 基础组件样式 ========== */

/* 指标卡片 */
.metric-card {
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
    border-left: 5px solid #e60012;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(230, 0, 18, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(230, 0, 18, 0.15);
}

.metric-card .metric-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #e60012;
    display: block;
    margin-bottom: 5px;
}

.metric-card .metric-label {
    font-size: 0.95em;
    color: #666;
    font-weight: 500;
}

/* 图标容器 */
.icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e60012 0%, #b71c1c 100%);
    color: white;
    font-size: 1.5em;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(230, 0, 18, 0.3);
    flex-shrink: 0;
}

/* 特性卡片 */
.feature-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    will-change: transform;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.12);
    border-color: #e60012;
}

.feature-card .content {
    flex: 1;
}

.feature-card .feature-title {
    font-weight: bold;
    color: #e60012;
    font-size: 1.1em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 进度条 */
.progress-container {
    margin: 15px 0;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    height: 30px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #e60012 0%, #ff6b6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
    transition: width 1s ease-in-out;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-bar:hover::before {
    opacity: 1;
    animation: shimmer 2s ease-in-out;
}

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

/* 摘要框 */
.summary-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
    border-left: 5px solid #e60012;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 3px 12px rgba(230, 0, 18, 0.1);
}

.summary-box .summary-title {
    font-weight: bold;
    color: #e60012;
    font-size: 1.2em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 时间线卡片 */
.timeline-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border: 3px solid #e60012;
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #e60012 0%, #ff6b6b 50%, #e60012 100%);
}

.timeline-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 0%, rgba(230, 0, 18, 0.03) 100%);
    border-radius: 0 0 16px 0;
}

.timeline-card .quarter-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e60012 0%, #b71c1c 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 视觉分隔符 */
.visual-separator {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #e60012 50%, transparent 100%);
    margin: 30px 0;
    position: relative;
}

.visual-separator::before {
    content: '◆';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0 15px;
    color: #e60012;
    font-size: 1.5em;
}

/* 步骤指示器 */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 2px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    will-change: transform;
}

.step:hover {
    border-color: #e60012;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.15);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e60012 0%, #b71c1c 100%);
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.step-title {
    font-weight: bold;
    color: #e60012;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.9em;
    color: #666;
}

/* 高亮框 */
.highlight-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-left: 5px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 3px 12px rgba(255, 193, 7, 0.2);
}

.highlight-box .highlight-icon {
    font-size: 2em;
    margin-right: 10px;
}

/* 数字高亮 */
.number-highlight {
    display: inline-block;
    background: linear-gradient(135deg, #e60012 0%, #b71c1c 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.3em;
    margin: 5px 10px;
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.3);
    transition: transform 0.3s ease;
}

.number-highlight:hover {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 信息卡片网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(230, 0, 18, 0.12);
    border-color: #e60012;
}

.info-card .card-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.info-card .card-title {
    font-weight: bold;
    color: #e60012;
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* ========== 布局样式 ========== */

/* 左侧目录导航 */
.toc {
    position: fixed;
    left: 15px;
    top: 80px;
    width: 180px;
    background: #fdfdfd;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    font-size: 0.8em;
}

.toc h3 {
    margin-top: 0;
    font-size: 1.1em;
    color: #e60012;
    border-bottom: 2px solid #e60012;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
    display: block;
}

.toc a:hover {
    color: #b71c1c;
    transform: translateX(4px);
}

.toc .sub-menu {
    list-style: none;
    padding-left: 12px;
    margin-top: 8px;
}

.toc .sub-menu a {
    font-size: 0.95em;
    font-weight: 400;
    color: #444;
}

.toc .sub-menu .sub-menu {
    padding-left: 15px;
}

.toc .sub-menu .sub-menu a {
    font-size: 0.9em;
    color: #555;
}

/* 主容器 */
.container {
    max-width: 1400px;
    margin: 0 0 0 220px;
    padding: 20px 40px;
}

/* 页面头部 */
.header {
    text-align: left;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-left: 10px solid #e60012;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(230,0,18,0.1);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(230, 0, 18, 0.05) 100%);
}

.header h1 {
    font-size: 2.5em;
    margin: 0;
    font-weight: bold;
    letter-spacing: 1px;
    color: #222;
}

.header p {
    font-size: 1.2em;
    color: #b71c1c;
    margin: 10px 0 0;
    font-weight: bold;
}

/* ========== 分区样式 ========== */

/* 分区渐变背景 */
#section-1 {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 50%, #ffe8e8 100%);
}

#section-2 {
    background: linear-gradient(135deg, #ffecec 0%, #fff5f5 50%, #ffdada 100%);
}

#section-3 {
    background: linear-gradient(135deg, #ffd6d6 0%, #ffecec 50%, #ffcccc 100%);
}

#section-4 {
    background: linear-gradient(135deg, #ffc4c4 0%, #ffd6d6 50%, #ffbdbd 100%);
}

#section-4-5 {
    background: linear-gradient(135deg, #ffb3b3 0%, #ffc4c4 50%, #ffadad 100%);
}

#section-5 {
    background: linear-gradient(135deg, #ffa3a3 0%, #ffb3b3 50%, #ff9d9d 100%);
}

#section-6 {
    background: linear-gradient(135deg, #ff9494 0%, #ffa3a3 50%, #ff8e8e 100%);
}

/* 分区容器 */
.section {
    border: 3px solid #e60012;
    border-radius: 16px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(230,0,18,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    will-change: transform;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #e60012 0%, #ff6b6b 50%, #e60012 100%);
    z-index: 1;
}

.section:hover {
    box-shadow: 0 20px 60px rgba(230,0,18,0.35);
    transform: translateY(-8px) scale(1.01);
    border-color: #b71c1c;
}

/* 分区标题 */
.section-title {
    background: linear-gradient(90deg, #e60012 0%, #b71c1c 100%);
    color: #fff;
    padding: 20px 30px;
    font-size: 1.6em;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-bottom: 4px solid #8b0000;
}

.section-title .icon {
    font-size: 1.3em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* 分区内容 */
.section-content {
    padding: 25px;
}

.section-content h3 {
    color: #e60012;
    font-size: 1.4em;
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-left: 6px solid #e60012;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(230, 0, 18, 0.1);
}

/* 季度标题特殊样式 */
.section-content h3[id^="section-6-"] {
    margin-top: 40px;
    padding: 18px 25px;
    font-size: 1.5em;
    background: linear-gradient(135deg, #e60012 0%, #b71c1c 100%);
    color: white;
    border-left: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(230, 0, 18, 0.3);
}

.section-content h4 {
    color: #b71c1c;
    font-size: 1.1em;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* ========== 表格样式 ========== */

table {
    background: #fff;
    color: #222;
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table thead {
    background: linear-gradient(90deg, #e60012 0%, #b71c1c 100%);
    color: #fff;
    font-weight: bold;
    font-size: 1.08em;
    letter-spacing: 1px;
}

table th {
    background: #e60012;
    color: #fff;
    border-bottom: 2.5px solid #8b0000;
    font-weight: bold;
    font-size: 1.08em;
    letter-spacing: 1px;
    padding: 12px 15px;
}

table th, table td {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    vertical-align: top;
}

table tbody tr:nth-child(even) {
    background: #f8f8f8;
}

table tbody tr:hover {
    background: #fff5f5;
}

table td ul {
    list-style-type: disc;
    margin: 0;
    padding-left: 20px;
}

table td li {
    margin-bottom: 5px;
}

table td li:last-child {
    margin-bottom: 0;
}

/* ========== 其他元素样式 ========== */

ul, ol {
    padding-left: 25px;
}

li {
    margin-bottom: 12px;
    line-height: 1.8;
}

strong {
    color: #e60012;
}

.mermaid {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.highlight {
    font-weight: bold;
    color: #b71c1c;
    background: linear-gradient(90deg, transparent 0%, rgba(230, 0, 18, 0.1) 50%, transparent 100%);
    padding: 2px 8px;
    border-radius: 4px;
}

a {
    color: #e60012;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #b71c1c;
    text-decoration: underline;
}

hr.action-separator {
    border: 0;
    height: 1.5px;
    background-image: linear-gradient(to right, rgba(230, 0, 18, 0.1), rgba(230, 0, 18, 0.8), rgba(230, 0, 18, 0.1));
    margin: 60px 0 40px 0;
}

.key-section-highlight {
    background-color: #fffde7;
    border: 2px solid #e60012;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(230,0,18,0.1);
}

/* ========== 特殊功能样式 ========== */

/* 当前阶段指示器 */
.current-stage {
    position: relative;
    border: 3px solid #e60012 !important;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%) !important;
}

.current-stage::after {
    content: '🎯 当前阶段';
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #e60012 0%, #b71c1c 100%);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(230, 0, 18, 0.4);
    animation: pulse-badge 2s ease-in-out;
    animation-iteration-count: 3;
    will-change: transform, box-shadow;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(230, 0, 18, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(230, 0, 18, 0.6);
    }
}

.current-stage .step-number {
    background: linear-gradient(135deg, #e60012 0%, #b71c1c 100%);
    animation: glow 2s ease-in-out;
    animation-iteration-count: 3;
    will-change: box-shadow;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(230, 0, 18, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(230, 0, 18, 0.8), 0 0 30px rgba(230, 0, 18, 0.4);
    }
}

.current-stage-section {
    position: relative;
    margin-top: 50px;
    padding-top: 15px;
}

.current-stage-section::before {
    content: '🎯 当前阶段';
    display: inline-block;
    background: linear-gradient(135deg, #e60012 0%, #b71c1c 100%);
    color: white;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(230, 0, 18, 0.3);
    animation: pulse-badge 2s ease-in-out;
    animation-iteration-count: 3;
    will-change: transform, box-shadow;
    position: absolute;
    top: -40px;
    left: 0;
}

/* 视频容器 */
.video-demo-container {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 2px solid #e60012;
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 6px 25px rgba(230, 0, 18, 0.15);
}

.video-demo-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #e60012;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-demo-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: #000;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

/* 未来目标样式 */
.future-goal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    margin-bottom: 15px;
}

.future-goal-timeline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    margin-left: 15px;
    box-shadow: 0 3px 10px rgba(240, 147, 251, 0.3);
}

.future-stage-container {
    position: relative;
    opacity: 0.7;
}

.future-stage-container::before {
    content: '🔮 未来愿景';
    position: absolute;
    top: -45px;
    left: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

/* 展开按钮 */
.expand-button {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 40px auto;
    padding: 15px 30px;
    background: linear-gradient(135deg, #e60012 0%, #b71c1c 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 0, 18, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}

.expand-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.4);
}

.expand-button:active {
    transform: translateY(-1px);
}

/* 隐藏区域 */
#section-6 {
    display: none;
}

.toc-item-section-6 {
    display: none;
}

/* ========== 密码保护样式 ========== */

#password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e60012 0%, #b71c1c 50%, #8b0000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#password-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.password-container {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.5s ease;
}

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

.password-container h2 {
    color: #e60012;
    margin-bottom: 10px;
    font-size: 1.8em;
}

.password-container p {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95em;
}

.password-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.password-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.1em;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.password-input:focus {
    outline: none;
    border-color: #e60012;
    box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.1);
}

.password-input.error {
    border-color: #dc3545;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.password-button {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #e60012 0%, #b71c1c 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 0, 18, 0.3);
}

.password-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.4);
}

.password-button:active {
    transform: translateY(0);
}

.error-message {
    color: #dc3545;
    margin-top: 15px;
    font-size: 0.9em;
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    opacity: 1;
}

.lock-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.main-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-content.visible {
    opacity: 1;
}

/* ========== 响应式设计 ========== */

@media (max-width: 1200px) {
    .toc {
        display: none;
    }
    .container {
        margin: 0 auto;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }

    .section-title {
        font-size: 1.2em;
    }

    .metric-card .metric-value {
        font-size: 2em;
    }

    .step-indicator {
        flex-direction: column;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .container {
        margin: 0 auto;
        padding: 15px;
    }
}
