/* 模块 1：首屏 */
#hero {
  text-align: center;
  background-image: url('../images/7.png'); /* 统一使用7.png作为背景 */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(245, 240, 230, 0.7); /* 淡米白底色叠加 */
    z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.main-title {
  color: var(--color-primary);
  font-size: 80px;
  letter-spacing: 10px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.sub-title {
  color: var(--color-text);
  font-size: 24px;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.slogan {
  color: var(--color-accent-yellow);
  font-size: 18px;
  margin-bottom: 60px;
}

.scroll-hint {
  color: var(--color-accent-blue);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* 模块 2：项目背景 */
#background-story .container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    gap: 40px;
}

.story-text {
    flex: 1;
    line-height: 2;
    font-size: 16px;
}

.story-text p {
    margin-bottom: 15px;
}

.data-dashboard {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 30px;
    border: 1px dashed var(--color-primary);
    border-radius: 8px;
}

.data-item {
    text-align: center;
}

.data-number {
    font-size: 48px;
    color: var(--color-primary);
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif; /* 数字更醒目 */
    display: block;
}

.data-label {
    font-size: 14px;
    color: var(--color-text);
}

.data-summary {
    font-size: 18px;
    color: var(--color-accent-yellow);
    text-align: center;
    font-weight: bold;
}

/* 模块 3：设计逻辑 */
#logic .container {
    max-width: 1200px;
    width: 100%;
}
.logic-columns {
    display: flex;
    gap: 60px;
    margin-top: 40px;
}
.logic-col {
    flex: 1;
    background: rgba(232, 201, 168, 0.1);
    padding: 30px;
    border-radius: 12px;
}
.logic-col-title {
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-primary);
    padding-bottom: 10px;
    display: inline-block;
}

.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--color-primary);
}
.timeline-item {
    position: relative;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s;
}
.timeline-item:hover {
    transform: translateX(10px);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid var(--color-primary);
    transition: background 0.3s;
}
.timeline-item:hover::before {
    background: var(--color-accent-yellow);
}

.funnel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.funnel-step {
    width: 80%;
    background: var(--color-primary);
    color: var(--color-bg);
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    cursor:help;
    transition: width 0.5s;
    position: relative;
}
.funnel-step:nth-child(2) { width: 70%; background: #dfbfa0;}
.funnel-step:nth-child(3) { width: 60%; background: #d6b598;}
.funnel-step:nth-child(4) { width: 50%; background: #ccaa8f;}
.funnel-step:nth-child(5) { width: 40%; background: #c2a087;}

.funnel-tooltip {
    position: absolute;
    right: -150px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-text);
    color: var(--color-bg);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    white-space: nowrap;
}
.funnel-step:hover .funnel-tooltip {
    opacity: 1;
}

/* 模块 4：主题卡片 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}
.theme-card {
    position: relative;
    height: 300px;
    border: 1px solid var(--color-primary);
    overflow: hidden;
    cursor: pointer;
    background-color: #fcf9f2;
}
/* 回纹装饰模拟 */
.theme-card::before, .theme-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    opacity: 0.5;
    z-index: 2;
}
.theme-card::before { top: 5px; left: 5px; border-right: none; border-bottom: none; }
.theme-card::after { bottom: 5px; right: 5px; border-left: none; border-top: none; }

.card-bg {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    transition: opacity 0.4s, transform 0.4s;
    /* mix-blend-mode: multiply; */ /* 如果需要更融合的效果 */
}
.theme-card:hover .card-bg {
    opacity: 1;
    transform: scale(1.05);
}
.card-content {
    position: relative;
    z-index: 3;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(245, 240, 230, 0.9), rgba(245, 240, 230, 0));
}
.card-title {
    font-size: 24px;
    color: var(--color-text);
    margin-bottom: 10px;
    transition: color 0.3s;
}
.theme-card:hover .card-title {
    color: var(--color-accent-red);
}
.card-desc {
    font-size: 14px;
    color: var(--color-text);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s;
}
.theme-card:hover .card-desc {
    opacity: 1;
    transform: translateY(0);
}

/* 模块 5：探索指南 */
.guide-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1000px;
    justify-content: center;
}
.guide-item {
    width: 45%;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255,255,255,0.5);
    border: 1px dotted var(--color-primary);
    border-radius: 8px;
    transition: background 0.3s, border-style 0.3s;
}
.guide-item:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    border-style: solid;
}
.guide-icon {
    font-size: 24px;
    color: var(--color-accent-yellow);
}
.guide-item:hover .guide-icon {
    color: var(--color-bg);
}

/* 模块 6：底部 */
.footer {
    background-color: #eee9dd;
    padding: 60px 20px 20px;
    text-align: center;
    border-top: 1px solid var(--color-primary);
}
.footer-value {
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 2;
    font-size: 16px;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}
.qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.qr-placeholder {
    width: 100px;
    height: 100px;
    border: 1px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--color-primary);
    background: #fff;
}
.author-info {
    font-size: 12px;
    color: #666;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed var(--color-primary);
}
/* 鼮ҳȫ */
.book-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 10000;
    perspective: 3000px;
    pointer-events: auto;
    overflow: hidden;
    animation: disablePointer 5s forwards; /* úԪ5ɵ */
}
@keyframes disablePointer {
    99% { pointer-events: auto; visibility: visible; }
    100% { pointer-events: none; visibility: hidden; }
}

.book-page.full-page {
    position: absolute;
    top: 0; right: 0; width: 100vw; height: 100vh;
    transform-style: preserve-3d;
    transform-origin: left center;
    /* 1.5s ͣĶʱ䣬 2.5s ҳ */
    animation: turnPageLeft 3.5s ease-in-out forwards;
    animation-delay: 1.5s; 
}
@keyframes turnPageLeft {
    0% { transform: rotateY(0deg); opacity: 1; }
    99% { opacity: 1; }
    100% { transform: rotateY(-180deg); opacity: 0; visibility: hidden; pointer-events: none; }
}

.page-front, .page-back {
    position: absolute;
    top: 0; left: 0; width: 100vw; height: 100vh;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-back {
    transform: rotateY(180deg);
}

.xuan-paper {
    background-color: #f5f0e6; /* ֽʸеɫ */
    background-image: 
        radial-gradient(circle at center, transparent 0%, rgba(200, 180, 150, 0.1) 100%),
        repeating-linear-gradient(90deg, rgba(0,0,0,0.02) 0px, transparent 1px, transparent 15px, rgba(0,0,0,0.02) 16px),
        url("../images/7.png"); 
    background-blend-mode: multiply;
    background-size: cover;
    background-attachment: fixed;
    box-shadow: inset -10px 0 30px rgba(0,0,0,0.1), inset 0 0 50px rgba(0,0,0,0.05);
}

.vertical-text-container {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: 70vh;
    font-family: var(--font-text);
    color: var(--color-text);
    display: flex;
    flex-wrap: wrap-reverse; /* ż */
    align-content: center;
    gap: 40px;
    letter-spacing: 5px;
    line-height: 2.2;
}

.fade-in-book {
    opacity: 0;
    animation: fadeInText 1s ease-in forwards;
    animation-delay: 0.5s;
}
@keyframes fadeInText {
    to { opacity: 1; }
}

.book-author {
    font-size: 26px;
    margin-left: 30px; /* ҲԵ루Ϊţmargin-left ࣩ */
    border-left: 2px solid var(--color-accent-red);
    padding-bottom: 20px;
    font-family: var(--font-title);
    color: #8B2500;
}

.book-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* дҵ */
}

.book-content p {
    font-size: 22px;
    color: #2F2A24;
    text-indent: 44px; /* ൱³ֿ */
}

.logo-reveal {
    font-size: 12vw;
    font-family: var(--font-title);
    color: var(--color-accent-red);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.15);
    opacity: 0;
    /* Ϸҳʱ䣬ڷתԼ 90 ҲǱ濪ʼʾʱ */
    animation: logoRevealAnim 2s ease-in-out forwards;
    animation-delay: 3s;
}
@keyframes logoRevealAnim {
    0% { opacity: 0; transform: scale(0.9); }
    50% { opacity: 0.8; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.1); }
}

/* Ƭתҳ */
#page-transition-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    perspective: 3000px;
}
#page-transition-overlay.active {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}
#page-transition-overlay .book-page.full-page {
    /* ȫʽûӳ٣ٶԿ */
    animation: turnPageLeftTransition 2s ease-in-out forwards;
    animation-delay: 0s;
}
@keyframes turnPageLeftTransition {
    0% { transform: rotateY(0deg); opacity: 1; }
    50% { transform: rotateY(-90deg); opacity: 1; } /* չֱ */
    100% { transform: rotateY(-180deg); opacity: 0; }
}

@media (max-width: 768px) {
    .vertical-text-container {
        height: 80vh;
        gap: 20px;
        line-height: 1.8;
    }
    .book-author { font-size: 20px; }
    .book-content p { font-size: 16px; text-indent: 32px; }
    .logo-reveal { font-size: 20vw; }
}

