/* ========================================
   PotPlayer Site2 - Style
   ======================================== */

:root {
    --primary: #1565c0;
    --primary-dark: #0d47a1;
    --primary-light: #1e88e5;
    --accent: #ff6f00;
    --accent-hover: #e65100;
    --accent-light: #ff8f00;
    --text: #212121;
    --text-light: #546e7a;
    --bg: #fafafa;
    --bg-white: #ffffff;
    --bg-section: #f0f4f8;
    --border: #e0e0e0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 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", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
}

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header / Navigation
   ======================================== */

.site-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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

.site-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo:hover {
    color: #fff;
    opacity: 0.9;
}

.site-logo .logo-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

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

.main-nav a {
    color: rgba(255,255,255,0.85);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.header-download-btn {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.header-download-btn:hover {
    background: var(--accent-hover) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* ========================================
   Download CTA Buttons
   ======================================== */

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(255, 111, 0, 0.35);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 111, 0, 0.45);
    color: #fff !important;
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn .btn-icon {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.download-btn-sm {
    font-size: 0.95rem;
    padding: 12px 24px;
}

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

.download-btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent) !important;
    box-shadow: none;
}

.download-btn-outline:hover {
    background: var(--accent);
    color: #fff !important;
}

.download-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid var(--accent-light);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    margin: 40px 0;
}

.download-section h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text);
}

.download-section p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.download-btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.download-btn-group .file-size {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Inline CTA banner within content */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.cta-banner h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.cta-banner p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.cta-banner .download-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #0a3d8f 100%);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: hero-glow 8s ease-in-out infinite alternate;
}

@keyframes hero-glow {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 12px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero .version-info {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 36px;
}

.hero .download-btn {
    font-size: 1.3rem;
    padding: 20px 52px;
}

.hero-badges {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ========================================
   Page Header (inner pages)
   ======================================== */

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 48px 0 36px;
    text-align: center;
}

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

.page-header p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 650px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 16px;
    justify-content: center;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb span {
    color: rgba(255,255,255,0.5);
}

/* ========================================
   Content Sections
   ======================================== */

.content-section {
    padding: 60px 0;
}

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

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

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 36px;
}

/* ========================================
   Cards
   ======================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

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

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

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.card .card-link {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========================================
   Tutorial / Guide Styles
   ======================================== */

.tutorial-content {
    max-width: 860px;
    margin: 0 auto;
}

.step-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.step-item {
    counter-increment: step-counter;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px 28px 28px 80px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid var(--border);
}

.step-item::before {
    content: counter(step-counter);
    position: absolute;
    left: 24px;
    top: 28px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-item h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text);
}

.step-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.step-item .step-note {
    background: #e3f2fd;
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--primary-dark);
    border-left: 3px solid var(--primary);
}

/* Info boxes */
.info-box {
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 24px 0;
    font-size: 0.95rem;
}

.info-box.tip {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

.info-box.warning {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    color: #e65100;
}

.info-box.note {
    background: #e3f2fd;
    border-left: 4px solid var(--primary);
    color: var(--primary-dark);
}

.info-box h4 {
    margin-bottom: 6px;
    font-size: 1rem;
}

/* ========================================
   Feature List
   ======================================== */

.feature-block {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.feature-block h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-block .feature-icon {
    width: 36px;
    height: 36px;
    background: #e3f2fd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-block p {
    color: var(--text-light);
    margin-bottom: 12px;
}

.feature-block ul {
    padding-left: 20px;
    color: var(--text-light);
}

.feature-block ul li {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

/* ========================================
   FAQ Styles
   ======================================== */

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

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

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

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

.faq-question .arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: var(--text-light);
}

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

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

.faq-item.active .faq-answer {
    display: block;
}

/* ========================================
   Table
   ======================================== */

.table-wrap {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

th, td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

td {
    font-size: 0.95rem;
    color: var(--text-light);
}

tr:hover td {
    background: var(--bg-section);
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

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

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

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-download-cta {
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.footer-download-cta p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-download-cta .download-btn {
    width: 100%;
    font-size: 0.95rem;
    padding: 12px 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

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

/* ========================================
   Sidebar Download Widget
   ======================================== */

.sidebar-download {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 2px solid var(--accent-light);
    text-align: center;
    position: sticky;
    top: 84px;
}

.sidebar-download h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.sidebar-download .version-text {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.sidebar-download .download-btn {
    width: 100%;
    margin-bottom: 12px;
}

.sidebar-download .alt-link {
    font-size: 0.85rem;
    color: var(--primary);
}

/* ========================================
   Layout helpers
   ======================================== */

.page-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    padding: 48px 0;
}

.page-body.full-width {
    grid-template-columns: 1fr;
}

.page-body .main-content {
    min-width: 0;
}

/* ========================================
   404 Page
   ======================================== */

.page-404 {
    text-align: center;
    padding: 100px 20px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-404 h1 {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.page-404 p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .page-body {
        grid-template-columns: 1fr;
    }

    .sidebar-download {
        position: static;
    }

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 50px 0 40px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

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

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

    .cta-banner {
        flex-direction: column;
        text-align: center;
    }

    .download-btn-lg {
        font-size: 1.1rem;
        padding: 16px 32px;
    }

    .step-item {
        padding-left: 28px;
        padding-top: 28px;
    }

    .step-item::before {
        position: static;
        margin-bottom: 12px;
    }
}

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

    .page-header h1 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   Utilities
   ======================================== */

.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none; }
