/* ================================
   知物 ZhiWu - 官网样式
   ================================ */

/* CSS 变量 */
:root {
    --primary-50: #E8F5E9;
    --primary-100: #C8E6C9;
    --primary-500: #4CAF50;
    --primary-600: #43A047;
    --primary-700: #388E3C;
    --primary-800: #2E7D32;
    --primary-900: #1B5E20;
    
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    
    --text: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition: all 0.3s ease;
}

/* 重置样式 */
*, *::before, *::after {
    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;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================
   按钮样式
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-icon {
    font-size: 20px;
}

.btn-primary {
    background: var(--primary-500);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--primary-50);
}

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

.btn-block {
    display: flex;
    width: 100%;
}

/* ================================
   导航栏
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-800);
}

.logo-icon {
    font-size: 28px;
}

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

.nav-links a {
    font-size: 15px;
    color: var(--text-light);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-600);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

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

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    z-index: 999;
}

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

.mobile-menu a {
    font-size: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

/* ================================
   Hero 区域
   ================================ */
.hero {
    position: relative;
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.highlight {
    color: var(--primary-600);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

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

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

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

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-600);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* 手机 Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: var(--gray-900);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 32px;
    padding: 24px;
    overflow: hidden;
}

.screen-header {
    margin-bottom: 20px;
}

.screen-title {
    font-size: 14px;
    color: var(--text-light);
}

.screen-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-800);
    margin-bottom: 8px;
}

.screen-change {
    font-size: 14px;
    color: var(--success);
    margin-bottom: 24px;
}

.screen-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.screen-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

.item-icon {
    font-size: 24px;
}

.item-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.item-cost {
    font-size: 12px;
    color: var(--primary-600);
}

/* 浮动标签 */
.floating-badge {
    position: absolute;
    background: var(--white);
    padding: 12px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

.badge-1 {
    top: 20%;
    left: -20%;
    animation-delay: 0s;
}

.badge-2 {
    top: 50%;
    right: -25%;
    animation-delay: 1s;
}

.badge-3 {
    bottom: 15%;
    left: -15%;
    animation-delay: 2s;
}

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

/* ================================
   通用区块样式
   ================================ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-50);
    color: var(--primary-600);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

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

/* ================================
   功能区域
   ================================ */
.features {
    padding: 100px 0;
    background: var(--white);
}

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

.feature-card {
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-list li {
    font-size: 14px;
    color: var(--text-light);
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-500);
}

/* ================================
   产品展示
   ================================ */
.product {
    padding: 100px 0;
    background: var(--primary-50);
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.product-text .section-tag {
    margin-bottom: 16px;
}

.product-text .section-title {
    margin-bottom: 16px;
}

.product-text .section-subtitle {
    margin: 0 0 32px 0;
    text-align: left;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-features li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.pf-icon {
    width: 28px;
    height: 28px;
    background: var(--primary-500);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.product-features strong {
    display: block;
    margin-bottom: 4px;
}

.product-features p {
    font-size: 14px;
    color: var(--text-light);
}

/* 屏幕轮播 */
.product-screens {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screen-carousel {
    position: relative;
    width: 280px;
    height: 560px;
}

.screen-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.screen-slide.active {
    opacity: 1;
}

/* 屏幕内部样式 */
.screen-daycost, .screen-identify, .screen-analysis {
    background: var(--white);
}

.daycost-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.daycost-icon {
    font-size: 32px;
}

.daycost-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.daycost-detail {
    font-size: 12px;
    color: var(--text-light);
}

.daycost-result {
    text-align: center;
    padding: 20px;
    background: var(--primary-50);
    border-radius: var(--radius-sm);
}

.daycost-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-800);
    margin-bottom: 12px;
}

.daycost-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
}

.daycost-progress {
    height: 100%;
    background: var(--primary-500);
    border-radius: 4px;
}

.daycost-hint {
    font-size: 14px;
    color: var(--text-light);
}

.identify-camera {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-light);
}

.identify-result {
    padding: 16px;
    background: var(--primary-50);
    border-radius: var(--radius-sm);
}

.identify-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.identify-confidence {
    color: var(--primary-600);
    font-weight: 600;
}

.identify-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.identify-price {
    font-size: 14px;
    color: var(--text-light);
}

.chart-pie {
    width: 150px;
    height: 150px;
    margin: 20px auto;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary-500) 0deg 162deg,
        var(--primary-300) 162deg 234deg,
        var(--gray-300) 234deg 360deg
    );
}

.analysis-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.legend-item {
    font-size: 12px;
}

.analysis-insight {
    padding: 12px;
    background: var(--primary-50);
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: center;
}

.screen-indicators {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary-500);
    transform: scale(1.2);
}

/* ================================
   价格方案
   ================================ */
.pricing {
    padding: 100px 0;
    background: var(--white);
}

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

.pricing-card {
    position: relative;
    padding: 40px 32px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--primary-500);
    background: var(--primary-50);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--primary-500);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.plan-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.plan-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-800);
    margin-bottom: 8px;
}

.plan-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light);
}

.plan-desc {
    font-size: 14px;
    color: var(--text-light);
}

.plan-features {
    flex: 1;
    margin-bottom: 32px;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 15px;
}

.plan-features li:last-child {
    border-bottom: none;
}

/* ================================
   用户评价
   ================================ */
.testimonials {
    padding: 100px 0;
    background: var(--primary-50);
}

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

.testimonial-card {
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.testimonial-content {
    margin-bottom: 24px;
}

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

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.author-info {
    flex: 1;
}

.author-info strong {
    display: block;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 14px;
    color: var(--text-light);
}

.testimonial-rating {
    margin-left: auto;
    font-size: 14px;
}

/* ================================
   FAQ
   ================================ */
.faq {
    padding: 100px 0;
    background: var(--white);
}

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

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    background: var(--white);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-icon {
    font-size: 20px;
    color: var(--primary-500);
    transition: var(--transition);
}

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

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

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ================================
   CTA / 下载
   ================================ */
.cta {
    padding: 100px 0;
    background: var(--primary-800);
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    background: var(--white);
    border-radius: var(--radius-md);
    color: var(--text);
}

.download-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.download-icon {
    font-size: 32px;
}

.download-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
}

.download-store {
    display: block;
    font-size: 20px;
    font-weight: 600;
}

.download-note {
    font-size: 14px;
    opacity: 0.7;
}

/* ================================
   Footer
   ================================ */
.footer {
    padding: 80px 0 32px;
    background: var(--gray-900);
    color: var(--gray-400);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-slogan {
    font-size: 14px;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.social-link:hover {
    background: var(--primary-500);
}

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

.footer-column h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: var(--gray-400);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--gray-800);
    font-size: 14px;
}

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

.footer-legal a:hover {
    color: var(--white);
}

/* ================================
   响应式设计
   ================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 48px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .product-text {
        text-align: center;
        order: 2;
    }
    
    .product-text .section-subtitle {
        text-align: center;
    }
    
    .product-features {
        align-items: center;
    }
    
    .product-screens {
        order: 1;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
