/* 模块 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);
}