/* ================================
   选址笔记官网样式
   主题：深空黑 + 绿色
   ================================ */

:root {
    --bg-primary: #0B0F19;
    --bg-secondary: #111827;
    --bg-card: #1A2233;
    --bg-card-hover: #232D42;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --green-primary: #4CAF50;
    --green-bright: #00E676;
    --green-glow: rgba(76, 175, 80, 0.3);
    --green-subtle: rgba(76, 175, 80, 0.1);
    --radius: 16px;
    --radius-sm: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-primary), var(--green-bright));
    color: #000;
    box-shadow: 0 4px 20px var(--green-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 230, 118, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--green-primary);
    color: var(--green-bright);
    background: var(--green-subtle);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-download {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    gap: 12px;
    text-align: left;
}

.btn-download:hover {
    border-color: var(--green-primary);
    background: var(--bg-card-hover);
}

.btn-download img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.btn-download-text {
    display: flex;
    flex-direction: column;
}

.btn-download-text span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

.btn-download-text strong {
    font-size: 16px;
    color: var(--text-primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--green-bright);
}

.nav-cta {
    padding: 10px 22px;
    font-size: 14px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(76, 175, 80, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 230, 118, 0.05) 0%, transparent 40%);
    z-index: 0;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.15) 0%, transparent 70%);
    z-index: 0;
    animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-subtle);
    border: 1px solid rgba(76, 175, 80, 0.2);
    color: var(--green-bright);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green-bright);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(40px, 5.5vw, 64px);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--green-primary), var(--green-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--green-bright);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 560px;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 570px;
    background: var(--bg-card);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 40px rgba(76, 175, 80, 0.1);
    transform: perspective(1000px) rotateY(-12deg) rotateX(5deg);
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

@keyframes float {
    0%, 100% { transform: perspective(1000px) rotateY(-12deg) rotateX(5deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-12deg) rotateX(5deg) translateY(-15px); }
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: var(--bg-primary);
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
}

.floating-card {
    position: absolute;
    background: rgba(26, 34, 51, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: float-card 5s ease-in-out infinite;
}

.card-1 {
    top: 80px;
    right: 0;
    animation-delay: 0s;
}

.card-2 {
    bottom: 140px;
    left: -20px;
    animation-delay: 1.5s;
}

.card-3 {
    bottom: 60px;
    right: 20px;
    animation-delay: 3s;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-icon {
    width: 42px;
    height: 42px;
    background: var(--green-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--green-bright);
}

.card-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Trust Bar */
.trust-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
    text-align: center;
}

.trust-text {
    color: var(--text-muted);
    font-size: 15px;
    letter-spacing: 0.2em;
    font-weight: 500;
}

/* Section Common */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    background: var(--green-subtle);
    color: var(--green-bright);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
}

/* Features */
.features {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--green-subtle);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* Screenshots */
.screenshots-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.screenshot-main {
    width: 100%;
    max-width: 320px;
    height: 640px;
    background: var(--bg-card);
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.screenshot-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
    transition: var(--transition);
}

.screenshots-thumbs {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.thumb {
    width: 80px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--bg-card);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.thumb:hover {
    transform: translateY(-4px);
}

.thumb.active {
    border-color: var(--green-primary);
    box-shadow: 0 0 20px var(--green-glow);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-title {
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: 8px;
}

/* How It Works */
.how-it-works {
    background: var(--bg-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    border-color: rgba(76, 175, 80, 0.3);
}

.step-number {
    font-size: 56px;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--green-primary);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Scenarios */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.scenario-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.scenario-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(76, 175, 80, 0.3);
}

.scenario-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.scenario-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.scenario-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* Download */
.download {
    background: var(--bg-secondary);
}

.download-card {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(0, 230, 118, 0.05));
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: var(--radius);
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}

.download-content h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.download-content p {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 32px;
    max-width: 480px;
}

.download-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-note {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-muted);
    font-size: 14px;
}

.download-tag {
    background: var(--green-subtle);
    color: var(--green-bright);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
}

.download-qr {
    text-align: center;
}

.qr-placeholder {
    width: 160px;
    height: 160px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
}

.download-qr p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* FAQ */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-size: 22px;
    color: var(--green-bright);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer a {
    color: var(--green-bright);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 24px;
}

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

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 14px;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-links a:hover {
    color: var(--green-bright);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        min-height: 480px;
    }

    .download-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .download-buttons {
        justify-content: center;
    }

    .download-qr {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
        gap: 20px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .phone-mockup {
        width: 240px;
        height: 490px;
    }

    .floating-card {
        display: none;
    }

    section {
        padding: 70px 0;
    }

    .screenshot-main {
        max-width: 260px;
        height: 520px;
    }

    .thumb {
        width: 64px;
        height: 128px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 34px;
    }

    .hero-stats {
        gap: 24px;
    }

    .btn-large {
        padding: 14px 24px;
        width: 100%;
    }

    .download-card {
        padding: 32px 24px;
    }

    .screenshots-thumbs {
        gap: 10px;
    }

    .thumb {
        width: 56px;
        height: 112px;
    }
}
