/* ========================================
   Toughgrass 官网 - 严格还原 Figma 设计
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent: #7C5CF6;
    --accent-hover: #6644e8;
    --bg-color: #F5F5F7;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --card-bg: #FCFCFD;
    --card-bg-hover: #ffffff;
    --border-color: rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
    display: none;
}

* {
    scrollbar-width: none;
}

/* ========================================
   Page Layout
   ======================================== */
.page-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    flex-shrink: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(245, 245, 247, 0.82);
    border-bottom: 1px solid var(--border-color);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-desktop {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: inherit;
    transition: color 0.15s ease;
    padding: 4px 0;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-mobile {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}

.nav-mobile-menu {
    display: none;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    padding: 12px 40px 20px;
    flex-direction: column;
    gap: 4px;
}

.nav-mobile-menu.active {
    display: flex;
}

.mobile-link {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: inherit;
    transition: color 0.15s ease;
    padding: 10px 0;
    text-align: left;
    display: block;
    width: 100%;
    text-decoration: none;
}

.mobile-link:hover {
    color: var(--accent);
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    flex-shrink: 0;
    text-align: center;
    padding: 44px 40px 32px;
}

.hero-title {
    font-size: clamp(28px, 3.6vw, 52px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    line-height: 1.5;
}

/* ========================================
   Cards Section
   ======================================== */
.cards-section {
    flex: 1;
    min-height: 0;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
}

.cards-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ========================================
   Feature Card
   ======================================== */
.feature-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(255, 255, 255, 0.7);
    transition: box-shadow 0.28s ease, background-color 0.28s ease, transform 0.28s ease;
    cursor: default;
}

.feature-card:hover {
    background-color: var(--card-bg-hover);
    box-shadow: 0 20px 56px rgba(124, 92, 246, 0.13), 0 0 0 1px rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
}

.card-header {
    flex-shrink: 0;
    padding: 20px 20px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(124, 92, 246, 0.06);
    border-radius: 100px;
    padding: 3px 10px 3px 8px;
    margin-bottom: 10px;
    transition: background-color 0.25s ease;
}

.feature-card:hover .card-tag {
    background-color: rgba(124, 92, 246, 0.1);
}

.tag-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--accent);
    display: inline-block;
    flex-shrink: 0;
}

.tag-text {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 6px;
}

.card-caption {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.card-image-wrap {
    flex: 1;
    min-height: 0;
    padding: 20px;
}

.card-image-inner {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--card-bg);
    transition: background-color 0.28s ease;
}

.feature-card:hover .card-image-inner {
    background-color: var(--card-bg-hover);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}

.feature-card:hover .card-img {
    transform: scale(1.025);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    flex-shrink: 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
    padding: 16px 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.copyright {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    font-family: inherit;
    transition: color 0.15s ease;
    padding: 0;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--accent);
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
}
.beian {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}
.beian-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.beian-link:hover {
    color: var(--accent);
}
.beian-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}
.beian-divider {
    opacity: 0.4;
}

/* ========================================
   Modal
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background-color: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    padding: 48px 56px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.6);
    text-align: center;
    max-width: 360px;
    width: 100%;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.modal-close {
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s ease;
}

.modal-close:hover {
    opacity: 0.85;
}

#appModal .modal-card {
    max-width: 400px;
}

.app-modal-beian {
    margin-top: 12px;
    font-size: 12px;
    color: #86868B;
    line-height: 1.5;
}

.app-modal-beian a {
    color: #86868B;
    text-decoration: none;
}

.app-modal-beian a:hover {
    color: #7C5CF6;
}

/* ========================================
   Privacy Page
   ======================================== */
.privacy-body {
    background-color: var(--bg-color);
    min-height: 100vh;
    color: var(--text-primary);
}

.privacy-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 40px 120px;
}

.privacy-card {
    background-color: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    padding: 48px 56px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.privacy-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 32px;
}

.privacy-content {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.privacy-back {
    margin-top: 32px;
    text-align: center;
}

.back-link {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    font-family: inherit;
    transition: color 0.15s ease;
    text-decoration: none;
}

.back-link:hover {
    color: var(--accent);
}

.privacy-updated {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: -8px;
    margin-bottom: 28px;
}

.privacy-h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 36px;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.privacy-h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 10px;
}

.privacy-list {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 8px 0 16px;
    padding-left: 22px;
}

.privacy-list li {
    margin-bottom: 8px;
}

.privacy-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.privacy-footer-note {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .cards-section {
        overflow-y: auto;
    }
    
    .page-container {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    
    .main-content {
        overflow: visible;
    }
}

@media (max-width: 640px) {
    .nav-desktop {
        display: none;
    }
    
    .nav-mobile {
        display: block;
    }
    
    .nav-inner {
        padding: 0 24px;
    }
    
    .hero {
        padding: 32px 24px 24px;
    }
    
    .cards-section {
        padding: 0 24px;
    }
    
    .footer {
        padding: 16px 24px;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .privacy-main {
        padding: 40px 24px 80px;
    }
    
    .privacy-card {
        padding: 32px 24px;
    }
    
    .modal-card {
        padding: 40px 32px;
    }
}
