/* ============================================
   PotPlayer 中文版 - Main Stylesheet
   Primary: #e65100  Secondary: #bf360c
   ============================================ */

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

:root {
    --primary: #e65100;
    --primary-dark: #bf360c;
    --primary-light: #ff6d00;
    --primary-bg: #fff3e0;
    --text: #212121;
    --text-secondary: #555;
    --text-light: #777;
    --bg: #ffffff;
    --bg-alt: #fafafa;
    --bg-dark: #263238;
    --border: #e0e0e0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(230,81,0,0.15);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
    --max-width: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

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

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

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
}

.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a {
    padding: 8px 16px;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition);
}

.main-nav a:hover, .main-nav a.active {
    background: var(--primary-bg);
    color: var(--primary);
}

.nav-download-btn {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
}

.nav-download-btn:hover {
    background: var(--primary-dark) !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, #fff8f0 0%, #ffe8d6 50%, #ffd6b0 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230,81,0,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.25;
}

.hero h1 span { color: var(--primary); }

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-version {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

/* ============================================
   Download Buttons (Core CPA Element)
   ============================================ */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.3;
}

.btn-download-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 20px rgba(230,81,0,0.35);
}

.btn-download-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(230,81,0,0.45);
    color: #fff;
}

.btn-download-secondary {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow);
}

.btn-download-secondary:hover {
    background: var(--primary-bg);
    transform: translateY(-2px);
    color: var(--primary);
}

.btn-download-sm {
    padding: 12px 28px;
    font-size: 1rem;
}

.btn-download-lg {
    padding: 20px 48px;
    font-size: 1.25rem;
    border-radius: 12px;
}

.btn-download-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.btn-download .file-info {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 2px;
}

/* ============================================
   Stats Row
   ============================================ */
.stats-row {
    background: var(--bg);
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

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

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 72px 0;
}

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

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Feature Cards
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

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

/* ============================================
   Version Compare / Selection Guide
   ============================================ */
.version-guide {
    background: var(--bg-alt);
    padding: 72px 0;
}

.version-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    background: var(--bg);
    border: 1px solid var(--border);
}

.version-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.version-table th,
.version-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.version-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.version-table td {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.version-table tr:last-child td { border-bottom: none; }

.version-table tr:hover td {
    background: var(--primary-bg);
}

/* ============================================
   Installation Steps
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}

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

.step-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   User Reviews / Testimonials
   ============================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.review-stars {
    color: #ff9800;
    font-size: 1.1rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.review-author {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.review-role {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* ============================================
   CTA Section (Bottom Download)
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 72px 0;
    text-align: center;
    color: #fff;
}

.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-cta-white {
    background: #fff;
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-cta-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    color: var(--primary);
}

.btn-cta-outline {
    background: transparent;
    color: #fff;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.5);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.btn-cta-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--bg);
}

.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
    user-select: none;
}

.faq-question:hover { background: var(--primary-bg); }

.faq-arrow {
    font-size: 0.8rem;
    transition: transform var(--transition);
    color: var(--text-light);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-arrow { transform: rotate(180deg); }

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

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
}

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

/* ============================================
   Download Page Specific
   ============================================ */
.download-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.download-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.download-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.download-card.recommended {
    border-color: var(--primary);
}

.download-card.recommended::before {
    content: "推荐";
    position: absolute;
    top: -1px;
    right: 24px;
    background: var(--primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: 0 0 8px 8px;
    font-size: 0.82rem;
    font-weight: 600;
}

.download-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.download-card .version-tag {
    display: inline-block;
    background: var(--primary-bg);
    color: var(--primary);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.download-meta {
    text-align: left;
    margin: 20px 0;
}

.download-meta dt {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.download-meta dd {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 14px;
    margin-left: 0;
}

/* ============================================
   Notes / Tips Box
   ============================================ */
.tips-box {
    background: var(--primary-bg);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 24px 28px;
    margin: 32px 0;
}

.tips-box h4 {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.tips-box ul {
    list-style: none;
    padding: 0;
}

.tips-box li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
}

.tips-box li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ============================================
   About Page
   ============================================ */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text);
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.timeline {
    position: relative;
    padding-left: 40px;
    margin: 32px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-bg);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--primary-bg);
}

.timeline-year {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
}

.timeline-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 28px;
}

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

.footer-brand .logo {
    color: #fff;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.8;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color var(--transition);
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ============================================
   Page Header (Inner pages)
   ============================================ */
.page-header {
    background: linear-gradient(135deg, #fff8f0 0%, #ffe8d6 100%);
    padding: 56px 0 48px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Features Detail Page
   ============================================ */
.feature-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--border);
}

.feature-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.feature-detail.reverse { direction: rtl; }
.feature-detail.reverse > * { direction: ltr; }

.feature-detail-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-detail-text p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.feature-detail-visual {
    background: var(--primary-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.feature-visual-icon {
    font-size: 4rem;
    color: var(--primary);
    font-weight: 900;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: 1fr; }
    .feature-detail { grid-template-columns: 1fr; gap: 24px; }
    .feature-detail.reverse { direction: ltr; }
    .download-cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero { padding: 56px 0 40px; }
    .section { padding: 48px 0; }
    .section-header h2 { font-size: 1.6rem; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .steps-grid { grid-template-columns: 1fr; }
    
    .main-nav {
        display: none;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    
    .main-nav.open { display: flex; }
    .mobile-toggle { display: block; }
    
    .btn-download-lg {
        padding: 16px 32px;
        font-size: 1.1rem;
    }
    
    .cta-section h2 { font-size: 1.7rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.65rem; }
    .stat-number { font-size: 1.7rem; }
    .btn-download { padding: 14px 24px; font-size: 1rem; width: 100%; justify-content: center; }
}
