* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Serif SC', sans-serif;
    background: #fefaf5;
    color: #2c2418;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 头部 */
header {
    background: #ffffffdd;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e8e0d5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-icon {
    font-size: 28px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 12px;
    color: #8b7a66;
    font-style: italic;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    text-decoration: none;
    color: #4a3b2c;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover, nav a.active {
    color: #b85c1a;
    border-bottom: 2px solid #b85c1a;
    padding-bottom: 4px;
}

/* Hero */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f7f0e8 0%, #fefaf5 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    background: #e8d9cc;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 24px;
}

.hero-content h2 {
    font-size: 52px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #2c1a0e;
}

.hero-content p {
    font-size: 18px;
    color: #5e4b34;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: #b85c1a;
    color: white;
}

.btn-primary:hover {
    background: #96440e;
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid #b85c1a;
    color: #b85c1a;
}

.btn-outline:hover {
    background: #b85c1a10;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.placeholder-image {
    background: #ddd0c0;
    border-radius: 32px;
    padding: 80px 20px;
    font-size: 20px;
    color: #6b4c2c;
}

/* 特色 */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
    font-weight: 500;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 28px;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

/* 预览区块 */
.preview {
    background: #f4ede5;
    padding: 60px 0;
}

.preview-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    background: white;
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 24px;
}

.preview-original, .preview-translation {
    padding: 16px;
    border-radius: 16px;
}

.preview-text {
    font-size: 18px;
    line-height: 1.6;
    transition: all 0.2s;
}

.highlight-demo {
    background: #fdebd0;
    padding: 8px;
    border-radius: 8px;
}

.preview-note {
    text-align: center;
    color: #7a6246;
    font-size: 14px;
}

/* 统计 */
.stats {
    padding: 60px 0;
    background: #2c2418;
    color: white;
}

.stats .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 18px;
    opacity: 0.8;
}

/* 经文页样式 */
.jingwen-main {
    padding: 40px 0;
    min-height: 70vh;
}

.jingwen-container {
    display: flex;
    gap: 32px;
}

.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #f9f4ec;
    padding: 20px;
    border-radius: 20px;
}

.sidebar h3 {
    margin-bottom: 16px;
    font-size: 18px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar li:hover {
    background: #e8d9cc;
}

.sidebar li.active {
    background: #b85c1a;
    color: white;
}

.scripture-area {
    flex: 1;
}

.scripture-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn-small {
    background: #e8d9cc;
    border: none;
    padding: 6px 14px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
}

.dual-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.col-header {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8d9cc;
}

.verse-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.verse-line {
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s;
    cursor: default;
}

.verse-line.highlight {
    background: #fdebd0;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 响应式 */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
    }
    .dual-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .jingwen-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
}

footer {
    background: #1f1912;
    color: #bfae9a;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

/* 移动端触摸优化 */
@media (max-width: 768px) {
    .verse-line {
        min-height: 60px;
        user-select: none; /* 避免触摸时选中文字 */
    }
    
    .sidebar li:active {
        background: #d4c4b4;
        transform: scale(0.98);
    }
    
    button:active {
        transform: scale(0.96);
    }
}

/* 触摸高亮动画 */
.verse-line.highlight {
    transition: all 0.15s ease;
}

.verse-line.active-touch {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(184, 92, 26, 0.2);
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 确保入口卡片中的链接颜色正确 */
a.entry-card {
    color: inherit;
}

/* 确保响应式下导航不显示 */
@media (max-width: 768px) {
    nav {
        display: none;
    }
}