* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #fef3e6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, "Noto Sans", sans-serif;
    color: #2e241f;
    line-height: 1.5;
    padding: 0 0 48px 0;
}

.page {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fffbf5;
    box-shadow: 0 0 20px rgba(0,0,0,0.02);
    overflow-x: hidden;
    position: relative;
}

.hero {
    background: linear-gradient(135deg, #3b2a1f 0%, #5a3a22 50%, #6e4a2c 100%);
    padding: 36px 20px 42px 20px;
    text-align: center;
    color: #ffefcf;
    border-radius: 0 0 40px 40px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 添加装饰性底纹 */
.hero::before {
    content: "🌰";
    position: absolute;
    bottom: 12px;
    left: 20px;
    font-size: 40px;
    opacity: 0.1;
    pointer-events: none;
}

.hero::after {
    content: "🌰";
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 40px;
    opacity: 0.1;
    pointer-events: none;
}

.hero-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 16px;
}

.hero-title-row .title-center {
    text-align: center;
}

/* 主标题美化 */
.hero-title-row .title-center h1 {
    font-family: "Times New Roman", "Songti SC", "Noto Serif SC", "Georgia", "华文楷书", "KaiTi", serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #f9e0a0 0%, #ffefcf 40%, #e8c88a 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
    margin-bottom: 4px;
}

/* 添加装饰点 */
.hero-title-row .title-center h1::before {
    content: "✦";
    font-size: 1.8rem;
    color: #ffefcf;
    text-shadow: 0 0 4px rgba(255,215,150,0.8);
    margin-right: 12px;
    opacity: 0.9;
    display: inline-block;
}

.hero-title-row .title-center h1::after {
    content: "✦";
    font-size: 1.8rem;
    color: #ffefcf;
    text-shadow: 0 0 4px rgba(255,215,150,0.8);
    margin-left: 12px;
    opacity: 0.9;
    display: inline-block;
}

@media (max-width: 560px) {
    .hero-title-row .title-center h1 {
        font-size: 1.9rem;
        letter-spacing: 2px;
        white-space: normal;
        line-height: 1.3;
    }
    .hero-title-row .title-center h1::before,
    .hero-title-row .title-center h1::after {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero-title-row .title-center h1 {
        font-size: 1.6rem;
    }
    .hero-title-row .title-center h1::before,
    .hero-title-row .title-center h1::after {
        font-size: 1.2rem;
    }
}

.hero .sub {
    font-size: 0.95rem;
    background: rgba(255,235,190,0.25);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 40px;
    backdrop-filter: blur(4px);
    margin-top: 6px;
    font-weight: 500;
    letter-spacing: 1px;
    border: 1px solid rgba(255,235,190,0.4);
}

.hero p {
    margin-top: 14px;
    font-size: 0.85rem;
    opacity: 0.92;
    letter-spacing: 1px;
}

.section {
    margin: 28px 16px;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    overflow: hidden;
    padding: 4px 0 20px 0;
    position: relative;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    padding: 16px 20px 8px 20px;
    border-left: 5px solid #c27e4a;
    margin-bottom: 8px;
    background: #fffcf7;
    color: #4a2c1a;
}

.section-title span {
    font-size: 0.8rem;
    font-weight: normal;
    color: #b47c4a;
    margin-left: 8px;
}

.story-card-raw {
    background: #fffaf2;
    margin: 0 16px 20px 16px;
    border-radius: 24px;
    padding: 20px 20px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #3a2a20;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.story-card-raw p {
    margin-bottom: 12px;
    text-indent: 2em;
}

/* 十八道工序 - 图片和文字各占一半，统一固定高度 */
.process-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 8px 16px 16px 16px;
}

.process-item {
    display: flex;
    background: #fff8f0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #f5e5d4;
    height: 280px;
    min-height: 280px;
    max-height: 280px;
}

/* 图片区域占一半宽度，高度撑满 */
.process-img {
    flex: 1;
    background-color: #f0e1cf;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 100%;
}

.process-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #e9dccc;
}

/* 文字区域占一半宽度，垂直居中对齐 */
.process-info {
    flex: 1;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    overflow-y: auto;
}

.process-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: #794f2c;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.process-desc {
    font-size: 0.9rem;
    color: #6f543e;
    line-height: 1.5;
}

/* 团队实践区域 */
.gallery-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 12px 20px 24px 20px;
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
    scrollbar-width: thin;
}

.gallery-scroll::-webkit-scrollbar {
    height: 4px;
    background: #eedfcb;
    border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: #c27e4a;
    border-radius: 10px;
}

.gallery-item {
    flex: 0 0 auto;
    width: 160px;
    border-radius: 24px;
    overflow: hidden;
    background: #f8ede2;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s;
    white-space: normal;
    cursor: pointer;
}

.gallery-item:active {
    transform: scale(0.97);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: #e3d2c0;
}

.gallery-caption {
    padding: 8px 6px;
    text-align: center;
    font-size: 0.7rem;
    color: #5e3a22;
    background: #fffaf0;
    font-weight: 500;
    white-space: normal;
    word-break: break-word;
}

.video-container {
    padding: 8px 20px 20px 20px;
}

.video-card {
    background: #1a1a1a;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.video-card video {
    width: 100%;
    display: block;
    background: #000;
    max-height: 260px;
    object-fit: contain;
}

.video-caption {
    padding: 12px 16px;
    background: #fef4e8;
    font-size: 0.8rem;
    color: #5e3a22;
    text-align: center;
    font-weight: 500;
}

.footer-note {
    text-align: center;
    padding: 24px 20px 32px;
    font-size: 0.7rem;
    color: #b2947a;
    border-top: 1px solid #eedfcb;
    margin-top: 20px;
    background: #fffaf3;
}

.video-error-note {
    font-size: 12px;
    color: #c27e4a;
    text-align: center;
    padding: 8px;
    background: #fff2e3;
    border-radius: 20px;
    margin-top: 6px;
}