/* 青柚待办 官网样式 */

:root {
    --brand: #7ED957;
    --brand-dark: #62B93E;
    --brand-darker: #4A8F2E;
    --brand-light: #E4F6D3;
    --brand-lighter: #F3FBEC;

    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --text-tertiary: #888;

    --bg: #ffffff;
    --bg-alt: #fafbfc;
    --bg-card: #ffffff;
    --border: #e8e8e8;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 48px rgba(126, 217, 87, 0.18);

    --max-w: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--brand-darker);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--brand-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Layout ---------- */

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 56px 0;
    }
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-link img {
    width: 32px;
    height: 32px;
    border-radius: 7px;
}

.site-nav {
    display: flex;
    gap: 32px;
}

.site-nav a {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.site-nav a:hover {
    color: var(--brand-dark);
}

@media (max-width: 640px) {
    .site-nav {
        gap: 20px;
    }
    .site-nav a {
        font-size: 13px;
    }
}

/* ---------- Hero ---------- */

.hero {
    padding: 100px 0 80px;
    background: linear-gradient(180deg, var(--brand-lighter) 0%, var(--bg) 100%);
    text-align: center;
}

.hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
    margin: 0 auto 32px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 22px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-primary);
    color: #fff;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.hero-cta-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-tertiary);
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 56px;
    }
    .hero-icon {
        width: 96px;
        height: 96px;
        border-radius: 22px;
    }
    .hero-title {
        font-size: 38px;
    }
    .hero-tagline {
        font-size: 17px;
    }
}

/* ---------- Features Section ---------- */

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ---------- How it Works ---------- */

.how-section {
    background: var(--bg-alt);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    counter-reset: step;
}

@media (max-width: 768px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

.step {
    text-align: center;
    position: relative;
    padding: 32px 24px;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    display: block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-desc {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ---------- Hero Highlight ---------- */

.hero-highlight {
    color: var(--brand-dark);
}

/* ---------- Screenshots Carousel ---------- */

/* screenshots-section 无额外样式 */

.carousel {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
}

.phone-frame {
    max-width: 260px;
    border: 5px solid #1a1a1a;
    border-radius: 28px;
    overflow: hidden;
    background: #1a1a1a;
}

.phone-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

/* 左右箭头 */
.carousel-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    transition: background 0.2s, transform 0.2s;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: -56px; }
.carousel-next { right: -56px; }

/* 底部圆点 */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: var(--brand);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .carousel { max-width: 260px; }
    .slide-img { max-width: 240px; border-radius: 16px; }
    .carousel-btn { width: 36px; height: 36px; font-size: 20px; }
    .carousel-prev { left: -44px; }
    .carousel-next { right: -44px; }
}

@media (max-width: 480px) {
    .carousel-prev { left: -4px; }
    .carousel-next { right: -4px; }
    .carousel-btn { background: rgba(255, 255, 255, 0.8); }
}

/* ---------- CTA Section ---------- */

.cta-section {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.cta-section .section-title {
    color: #fff;
    margin-bottom: 16px;
}

.cta-section .section-subtitle {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 36px;
}

.cta-section .hero-cta {
    background: #fff;
    color: var(--text-primary);
}

.cta-section .hero-cta:hover {
    color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* ---------- Article (privacy / terms / etc) ---------- */

.article {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.article h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.article .meta {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.article h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 40px 0 16px;
}

.article h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 28px 0 12px;
}

.article p {
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.8;
}

.article ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.article ul li {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 6px;
}

.article .callout {
    background: var(--brand-lighter);
    border-left: 4px solid var(--brand);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 24px 0;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.75;
}

.article .callout strong {
    color: var(--brand-darker);
}

.article a {
    color: var(--brand-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* ---------- FAQ ---------- */

.faq {
    max-width: 760px;
    margin: 0 auto;
}

.faq details {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    background: var(--bg-card);
    transition: border-color 0.2s;
}

.faq details[open] {
    border-color: var(--brand);
}

.faq summary {
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    position: relative;
    padding-right: 48px;
    font-size: 15px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--text-tertiary);
    transition: transform 0.25s;
}

.faq details[open] summary::after {
    content: "−";
}

.faq details > p {
    padding: 0 22px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.75;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 56px 0 32px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.footer-brand strong {
    font-size: 17px;
    color: var(--text-primary);
}

.footer-tagline {
    color: var(--text-tertiary);
    font-size: 13px;
    line-height: 1.65;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--brand-dark);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 12px;
    line-height: 1.85;
}

.footer-bottom .icp {
    margin-top: 6px;
}

.footer-bottom a {
    color: var(--text-tertiary);
}

.footer-bottom a:hover {
    color: var(--brand-dark);
}
