/* ============================================
   千年雨伞史 - 全局样式
   ============================================ */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* 颜色变量 */
:root {
    --primary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --border-color: #ddd;
    --success-color: #27ae60;
    --warning-color: #f39c12;
}

/* ============================================
   顶部导航栏
   ============================================ */

.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--accent-color);
}

.logo-icon {
    font-size: 2rem;
    display: inline-block;
}

.logo-text {
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 0.05em;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

/* 汉堡菜单（移动端） */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   首页英雄区
   ============================================ */

.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 70vh;
}

.hero-content h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(231, 76, 60, 0.3);
}

/* 英雄装饰 */
.hero-decoration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.umbrella-svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.hero-bg {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ============================================
   快速导航网格
   ============================================ */

.nav-grid {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    margin: 0 auto;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.nav-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

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

.nav-card:hover::before {
    left: 100%;
}

.nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.nav-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.nav-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-arrow {
    display: inline-block;
    margin-top: 1rem;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.nav-card:hover .card-arrow {
    transform: translateX(5px);
}

/* ============================================
   特色内容预览
   ============================================ */

.feature-preview {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.preview-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.preview-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.preview-card.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.preview-card.reverse > * {
    direction: ltr;
}

.preview-image {
    overflow: hidden;
    border-radius: 8px;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e8f1f5, #d4e5f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    border-radius: 8px;
}

.preview-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.preview-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 0.5rem;
}

/* ============================================
   统计区
   ============================================ */

.statistics {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    border-radius: 12px;
    color: white;
}

.statistics .section-title h2 {
    color: white;
}

.statistics .title-underline {
    background: linear-gradient(90deg, white, transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ============================================
   页面标题区
   ============================================ */

.page-header {
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 100%;
}

.page-header h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.breadcrumb {
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* ============================================
   内容包装器
   ============================================ */

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.content-wrapper h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

.content-wrapper h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-wrapper p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: justify;
}

/* ============================================
   介绍部分
   ============================================ */

.introduction {
    background: linear-gradient(135deg, #f5f5f5, white);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 2rem;
}

.introduction h2 {
    border: none;
    padding: 0;
    margin-top: 0;
    color: var(--primary-color);
}

.introduction p {
    color: #666;
    font-size: 1.05rem;
}

/* ============================================
   高亮框
   ============================================ */

.highlight-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.highlight-box.secondary {
    background: #d1ecf1;
    border-left-color: #17a2b8;
}

.highlight-box p {
    margin: 0;
    color: #333;
}

/* ============================================
   按钮样式
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #ddd;
    transform: translateY(-2px);
}

/* ============================================
   导航按钮
   ============================================ */

.navigation-buttons {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.navigation-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 1rem;
}

/* ============================================
   页脚
   ============================================ */

.footer {
    background-color: var(--primary-color);
    color: white;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.comparison-table thead {
    background-color: var(--primary-color);
    color: white;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tbody tr:hover {
    background-color: #f5f5f5;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   列表样式
   ============================================ */

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

.feature-list li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ============================================
   引用框
   ============================================ */

.quote-box {
    background: #f8f9fa;
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 6px;
    font-style: italic;
    color: #555;
}

.quote-source {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    color: #999;
    font-size: 0.9rem;
}

/* ============================================
   特色框
   ============================================ */

.feature-box {
    background: white;
    border: 2px solid var(--light-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.feature-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    padding: 1rem;
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   时间线样式
   ============================================ */

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-era {
    margin-bottom: 3rem;
}

.era-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item.reverse {
    grid-template-columns: 1fr 150px;
    direction: rtl;
}

.timeline-item.reverse > * {
    direction: ltr;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline-marker::after {
    content: '';
    position: absolute;
    width: 2px;
    height: calc(100% + 2rem);
    background: var(--light-color);
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item:last-child .timeline-marker::after {
    display: none;
}

.marker-year {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    z-index: 1;
    position: relative;
}

.highlight-marker .marker-year {
    background: linear-gradient(135deg, var(--accent-color), #c0392b);
    padding: 0.7rem 1.2rem;
    font-size: 1.1rem;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.event-badge,
.innovation-badge,
.cultural-badge,
.business-badge,
.milestone-badge,
.social-change-badge,
.future-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.event-badge {
    background: #e3f2fd;
    color: #1976d2;
}

.innovation-badge {
    background: #f3e5f5;
    color: #7b1fa2;
}

.cultural-badge {
    background: #fff3e0;
    color: #e65100;
}

.business-badge {
    background: #e8f5e9;
    color: #2e7d32;
}

.milestone-badge {
    background: #fce4ec;
    color: #c2185b;
}

.social-change-badge {
    background: #e0f2f1;
    color: #00695c;
}

.future-badge {
    background: #f1f8e9;
    color: #558b2f;
}

.highlight-marker {
    transform: scale(1.2);
}

.highlight-content {
    background: linear-gradient(135deg, #fffde7, #fff9c4);
    border: 2px solid #fbc02d;
}

/* ============================================
   网格布局
   ============================================ */

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.grid-item {
    padding: 1rem;
}

.grid-item:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.image-block {
    margin: 1rem 0;
}

.image-block.full-width {
    grid-column: 1 / -1;
}

.image-caption {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ============================================
   流程时间线
   ============================================ */

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item-process {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.timeline-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #c0392b);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
}

/* ============================================
   卡片样式
   ============================================ */

.card-base {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card-base:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* ============================================
   表单样式
   ============================================ */

.story-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
}

/* ============================================
   故事卡片
   ============================================ */

.story-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease-out;
}

.story-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.story-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0;
}

.story-category {
    display: inline-block;
    background: linear-gradient(135deg, #f5f5f5, white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.story-content {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.8;
}

.story-content p {
    margin: 0;
}

.story-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-color);
}

.author,
.umbrella-type,
.date {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.story-actions {
    display: flex;
    gap: 1rem;
}

.like-btn,
.comment-btn {
    background: var(--light-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.like-btn:hover,
.comment-btn:hover {
    background: var(--accent-color);
    color: white;
}

.like-count {
    display: inline-block;
    font-weight: 600;
}

/* ============================================
   图库样式
   ============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #f5f5f5;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 600;
}

.gallery-item:hover .image-overlay {
    opacity: 1;
}

.image-info {
    padding: 1.5rem;
}

.image-info h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.image-info p {
    color: #666;
    font-size: 0.9rem;
    margin: 0.3rem 0;
}

.description {
    color: #999;
    font-size: 0.85rem;
    font-style: italic;
}

/* ============================================
   过滤器
   ============================================ */

.filter-btn {
    background: var(--light-color);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.3rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    color: white;
}

.gallery-filter {
    text-align: center;
    margin-bottom: 2rem;
}

/* ============================================
   动画
   ============================================ */

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

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
