/**
 * about.css — Part 2: What is LunarStar 品牌介绍
 * 深色背景 + 左侧大标题排版 + 星座 Canvas + 逐句 Reveal + CTA
 */

/* ===== About Section ===== */
.about-section {
    position: relative;
    min-height: 100svh;
    background: transparent;
    padding: 120px 0 80px;
    overflow: hidden;
}

/* ===== Grid: 左文右图 ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
}

/* ===== Left Column ===== */
.about-left {
    max-width: 560px;
}

.about-label {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: rgba(212, 176, 82, 0.7);
    margin: 0 0 24px;
    text-transform: uppercase;
}

.about-title {
    font-family: 'Noto Serif SC', 'Times New Roman', serif;
    font-size: 64px;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 0 0 28px;
}

.about-title .gold {
    color: #D4B052;
}

.about-subtitle {
    font-family: 'Noto Serif SC', serif;
    font-size: 24px;
    font-weight: 400;
    color: #D4B052;
    margin: 0 0 32px;
    line-height: 1.6;
}

.about-body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Noto Serif SC', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin: 0;
    max-width: 480px;

    /* 4行限制 */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Scroll Reveal 初始隐藏态 ===== */
.about-left .about-label,
.about-left .about-title,
.about-left .about-subtitle,
.about-left .about-body {
    opacity: 0;
    transform: translateY(40px);
}

.about-left.revealed .about-label,
.about-left.revealed .about-title,
.about-left.revealed .about-subtitle,
.about-left.revealed .about-body {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* stagger */
.about-left.revealed .about-label    { transition-delay: 0.00s; }
.about-left.revealed .about-title    { transition-delay: 0.15s; }
.about-left.revealed .about-subtitle { transition-delay: 0.30s; }
.about-left.revealed .about-body     { transition-delay: 0.45s; }

/* ===== Right Column — Canvas Container ===== */
.about-right {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#constellation-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== About Story — 逐句 Reveal ===== */
.about-story {
    margin-top: 80px;
    padding-left: 60px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.story-line {
    font-family: 'Noto Serif SC', 'Times New Roman', serif;
    font-size: 36px;
    font-weight: 200;
    letter-spacing: 0.15em;
    color: #ffffff;
    margin: 0 0 12px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;

    /* 序号前缀通过 JS 或伪元素实现 */
    position: relative;
    padding-left: 48px;
}

.story-line::before {
    content: attr(data-index);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 14px;
    font-weight: 400;
    color: rgba(212, 176, 82, 0.5);
    letter-spacing: 0.05em;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.story-line.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 前一句降低透明度，营造"一句一句长出来"的电影感 */
.story-line.dimmed {
    opacity: 0.35;
}

/* ===== CTA Button ===== */
.about-cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: 80px;
    padding: 0 60px;
}

.btn-discover {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #D4B052;
    background: transparent;
    border: 1px solid rgba(212, 176, 82, 0.4);
    border-radius: 40px;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.btn-discover:hover {
    background: rgba(212, 176, 82, 0.12);
    border-color: rgba(212, 176, 82, 0.8);
    color: #f0d878;
}

.btn-discover:active {
    transform: scale(0.97);
    transition: transform 0.15s ease;
}

/* 小星星 */
.btn-star {
    display: inline-block;
    width: 8px;
    height: 8px;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-star::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: #D4B052;
    clip-path: polygon(
        50% 0%, 61% 35%, 98% 35%, 68% 57%,
        79% 91%, 50% 70%, 21% 91%, 32% 57%,
        2% 35%, 39% 35%
    );
}

/* Hover: 星星弧线滑到右侧 */
.btn-discover:hover .btn-star {
    transform: translateX(calc(160px)) rotate(180deg);
}

/* ===== Ripple Animation ===== */
@keyframes aboutRipple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* ===== Constellation Label ===== */
.constellation-label {
    z-index: 2;
}

/* ===== Responsive: 768px ===== */
@media (max-width: 768px) {
    .about-section {
        padding: 80px 0 60px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 0 28px;
    }

    .about-left {
        max-width: 100%;
        order: 1;
    }

    .about-right {
        order: 2;
        min-height: 350px;
    }

    .about-title {
        font-size: 42px;
    }

    .about-subtitle {
        font-size: 20px;
    }

    .about-body {
        font-size: 15px;
    }

    .about-story {
        padding-left: 28px;
        margin-top: 64px;
    }

    .story-line {
        font-size: 28px;
        padding-left: 40px;
    }

    .story-line::before {
        font-size: 12px;
    }

    .btn-discover {
        padding: 14px 32px;
        font-size: 14px;
    }
}

/* ===== Responsive: 480px ===== */
@media (max-width: 480px) {
    .about-section {
        padding: 60px 0 48px;
    }

    .about-grid {
        padding: 0 20px;
        gap: 36px;
    }

    .about-title {
        font-size: 32px;
    }

    .about-subtitle {
        font-size: 18px;
    }

    .about-body {
        font-size: 14px;
        line-height: 1.7;
    }

    .about-right {
        min-height: 280px;
    }

    .about-story {
        padding-left: 20px;
        margin-top: 48px;
    }

    .story-line {
        font-size: 22px;
        padding-left: 32px;
    }

    .story-line::before {
        font-size: 11px;
    }

    .btn-discover {
        padding: 12px 28px;
        font-size: 13px;
    }

    .about-cta-wrap {
        margin-top: 56px;
    }
}
