
/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8; /* 接近白色 */
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #008080; /* 青绿色 */
}

a:hover {
    text-decoration: underline;
}

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

h1, h2, h3, h4, h5, h6 {
    color: #2c3e50; /* 深蓝灰 */
    margin-top: 0;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

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

/* Buttons */
.btn-hero-scroll {
    display: inline-block;
    background-color: #008080; /* 青绿色 */
    color: #fff;
    padding: 15px 35px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 128, 128, 0.2);
}

.btn-hero-scroll:hover {
    background-color: #006666; /* 更深的青绿色 */
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-status-view {
    display: inline-block;
    background-color: #fff; /* 白色 */
    color: #008080; /* 青绿色 */
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid #008080; /* 青绿色 */
    cursor: pointer;
    font-size: 0.95em;
    font-weight: bold;
}

.btn-status-view:hover {
    background-color: #008080;
    color: #fff;
    text-decoration: none;
}

.btn-client-download {
    display: inline-block;
    background-color: #2c3e50; /* 深蓝灰 */
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
}

.btn-client-download:hover {
    background-color: #34495e; /* 稍亮的深蓝灰 */
    text-decoration: none;
}

.table-download-link {
    display: inline-block;
    background-color: #008080; /* 青绿色 */
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.table-download-link:hover {
    background-color: #006666;
    text-decoration: none;
}

.btn-final-download {
    display: inline-block;
    background-color: #008080; /* 青绿色 */
    color: #fff;
    padding: 18px 50px;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1.3em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
}

.btn-final-download:hover {
    background-color: #006666;
    transform: translateY(-3px);
    text-decoration: none;
}

/* Header */
.header {
    background-color: #ffffff; /* 白色 */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0; /* 细线分隔 */
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

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

.header .logo img {
    height: 40px;
}

.header .nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.header .nav ul li {
    margin-left: 30px;
}

.header .nav ul li a {
    color: #333;
    font-weight: bold;
    font-size: 17px;
    transition: color 0.3s ease;
}

.header .nav ul li a:hover {
    color: #008080; /* 青绿色 */
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 28px;
    cursor: pointer;
}

/* Hero Section - Download Center */
.hero-download-center {
    background-color: #2c3e50; /* 深蓝灰 */
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero-download-center .hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-download-center h1 {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff;
}

.hero-download-center p {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #E0E0E0;
}

/* Main Content Sections */
.main-content section {
    padding: 80px 0;
}

.main-content section:nth-of-type(even) {
    background-color: #f8f8f8; /* 接近白色 */
}

.main-content section:nth-of-type(odd) {
    background-color: #ffffff;
}

.section-subtitle {
    font-size: 1.15em;
    color: #666;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
    text-align: center;
}

/* Top Version Status Area */
.section-version-status {
    padding: 50px 0;
    background-color: #ecf0f1; /* 浅灰色 */
}

.status-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.status-card .status-icon img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.status-card .status-info {
    flex-grow: 1;
}

.status-card .status-info h3 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 5px;
}

.status-card .status-info .version-number {
    color: #008080; /* 青绿色 */
    font-weight: bold;
}

.status-card .status-info p {
    font-size: 0.95em;
    color: #777;
    margin: 0;
}

/* Client Entries Grid */
.section-client-entries h2 {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 20px;
}

.client-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.client-entry-item {
    text-align: center;
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0; /* Subtle border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-entry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.client-entry-item .client-thumb {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
}

.client-entry-item h3 {
    font-size: 1.6em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.client-entry-item p {
    color: #666;
    font-size: 0.95em;
    min-height: 50px;
    margin-bottom: 20px;
}

/* Version Table */
.section-version-table h2 {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 20px;
}

.responsive-table {
    overflow-x: auto;
    margin-top: 50px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.responsive-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* Ensure table doesn't get too small */
}

.responsive-table th,
.responsive-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.responsive-table th {
    background-color: #2c3e50; /* 深蓝灰 */
    color: #fff;
    font-weight: bold;
    font-size: 1.05em;
}

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

.responsive-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.responsive-table td a {
    font-weight: bold;
}

/* Client Preview */
.section-client-preview {
    text-align: center;
}

.section-client-preview h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
}

.large-client-preview-image {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
}

/* File Description */
.section-file-description h2 {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 20px;
}

.file-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.file-info-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    border: 1px solid #e0e0e0;
}

.file-info-item h3 {
    color: #008080; /* 青绿色 */
    font-size: 1.5em;
    margin-bottom: 10px;
}

.file-info-item p {
    font-size: 0.95em;
    color: #555;
}

.file-info-item .md5-example {
    background-color: #f0f0f0;
    padding: 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: #333;
    margin-top: 15px;
    word-break: break-all;
}

/* Compatibility and Updates */
.section-compatibility-updates h2 {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 20px;
}

.info-two-col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.info-col-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    text-align: center;
}

.info-col-item h3 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.info-col-item p {
    color: #666;
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 25px;
}

.info-col-item .info-col-image {
    max-width: 250px;
    margin: 0 auto;
    border-radius: 5px;
}

/* Final CTA Section */
.section-download-cta-final {
    background-color: #2c3e50; /* 深蓝灰 */
    padding: 90px 0;
    text-align: center;
    color: #fff;
}

.section-download-cta-final h2 {
    font-size: 3.2em;
    color: #fff;
    margin-bottom: 25px;
}

.section-download-cta-final p {
    font-size: 1.3em;
    color: #E0E0E0;
    margin-bottom: 50px;
}

/* Footer - Dark Blue-Gray with Teal Green Accent */
.footer-dark-blue-green {
    background-color: #2c3e50; /* 深蓝灰 */
    color: #e0e0e0; /* 接近白色 */
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-dark-blue-green .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-dark-blue-green p {
    margin: 0;
    color: #bdbdbd;
}

.footer-dark-blue-green .footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-dark-blue-green .footer-links a {
    color: #008080; /* 青绿色 */
    transition: color 0.3s ease;
}

.footer-dark-blue-green .footer-links a:hover {
    color: #00b3b3; /* 稍亮的青绿色 */
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-download-center h1 {
        font-size: 3em;
    }

    .hero-download-center p {
        font-size: 1.2em;
    }

    .section-subtitle {
        font-size: 1.05em;
    }

    .status-card {
        flex-direction: column;
        text-align: center;
    }

    .status-card .status-info {
        width: 100%;
    }

    .client-entry-grid,
    .file-info-grid,
    .info-two-col-grid {
        grid-template-columns: 1fr;
    }

    .section-version-status h2,
    .section-client-entries h2,
    .section-version-table h2,
    .section-client-preview h2,
    .section-file-description h2,
    .section-compatibility-updates h2,
    .section-download-cta-final h2 {
        font-size: 2.2em;
    }

    .header .nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .responsive-table table {
        min-width: unset;
    }
}

@media (max-width: 768px) {
    .hero-download-center {
        padding: 70px 0;
    }

    .hero-download-center h1 {
        font-size: 2.5em;
    }

    .hero-download-center p {
        font-size: 1.1em;
    }

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

    .section-version-status h2,
    .section-client-entries h2,
    .section-version-table h2,
    .section-client-preview h2,
    .section-file-description h2,
    .section-compatibility-updates h2,
    .section-download-cta-final h2 {
        font-size: 1.8em;
    }

    .btn-hero-scroll,
    .btn-final-download {
        padding: 12px 30px;
        font-size: 1.1em;
    }

    .footer-dark-blue-green .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}
/* AAPoker visual safety patch: CTA sizing, image containment, icon consistency */
html {
    box-sizing: border-box;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    overflow-x: hidden;
}

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

.header .logo img,
.topbar img,
.quality-top img,
.mobile-head img,
img[src*="aapoker-logo-primary"],
img[src*="aapoker-logo-icon"] {
    width: auto;
    height: 38px;
    max-height: 42px;
    max-width: 180px;
    object-fit: contain;
    flex: 0 0 auto;
}

.hero,
.quality-hero,
.section,
.section.media,
.section.compact,
.app,
.pc,
.reinstall,
.note-left,
.entry,
.phone-hero,
.login-hero,
[class*="grid"] {
    min-width: 0;
}

.visual-panel,
.quality-card,
.mini-card,
.card,
article,
figure {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.visual-panel img,
.quality-card img,
.content-image,
.phone-strip img,
.final-image img,
.hero img,
.quality-hero img,
.section img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
}

.cta-row,
.quality-cta,
.download-buttons,
.hero-buttons,
.hero-actions,
.final-cta,
.seo-final-cta,
.quality-hero-cta,
.mid-cta {
    align-items: center;
    align-content: center;
    min-height: 0;
}

.btn-primary,
.btn-secondary,
.btn-primary-large,
.btn-primary-hero,
.btn-primary-final-cta,
.btn-tertiary,
.quality-btn,
.module-cta,
.topbar a,
.mobile-head a,
.cta-row a,
.quality-cta a,
.download-buttons a,
.hero-buttons a,
.hero-actions a,
.final-cta a,
.seo-final-cta a,
.quality-hero-cta a,
.mid-cta a,
button[class*="btn"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 0;
    align-self: center;
    flex: 0 0 auto;
    white-space: normal;
}

@media (max-width: 900px) {
    .cta-row,
    .quality-cta,
    .download-buttons,
    .hero-buttons,
    .hero-actions,
    .seo-final-cta,
    .quality-hero-cta,
    .mid-cta {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-primary-large,
    .btn-primary-hero,
    .btn-primary-final-cta,
    .btn-tertiary,
    .quality-btn,
    .module-cta,
    .topbar a,
    .mobile-head a,
    .cta-row a,
    .quality-cta a,
    .download-buttons a,
    .hero-buttons a,
    .hero-actions a,
    .final-cta a,
    .seo-final-cta a,
    .quality-hero-cta a,
    .mid-cta a {
        width: auto;
        max-width: 100%;
        min-height: 0;
        height: auto;
        flex: 0 1 auto;
    }

    .hero,
    .quality-hero,
    .section,
    .section.media,
    .section.compact,
    .app,
    .pc,
    .reinstall,
    .note-left,
    .entry,
    .phone-hero,
    .login-hero {
        max-width: 100%;
        overflow-x: hidden;
    }

    h1, h2, h3, p, li, a {
        overflow-wrap: anywhere;
    }
}
/* AAPoker visual safety patch v2: prevent CTA vertical text and icon oversize */
.btn-primary,
.btn-secondary,
.btn-primary-large,
.btn-primary-hero,
.btn-primary-final-cta,
.btn-tertiary,
.quality-btn,
.module-cta,
.topbar a,
.mobile-head a,
.cta-row a,
.quality-cta a,
.download-buttons a,
.hero-buttons a,
.hero-actions a,
.final-cta a,
.seo-final-cta a,
.quality-hero-cta a,
.mid-cta a,
a[href="/go/aapoker"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: calc(100vw - 48px) !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.25 !important;
    align-self: center !important;
    flex: 0 1 auto !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    text-align: center !important;
}

.header .logo img,
.topbar img,
.quality-top img,
.mobile-head img,
img[src*="aapoker-logo-primary"],
img[src*="aapoker-logo-icon"] {
    width: auto !important;
    height: auto !important;
    max-height: 42px !important;
    max-width: 180px !important;
    object-fit: contain !important;
}

@media (max-width: 480px) {
    .btn-primary,
    .btn-secondary,
    .btn-primary-large,
    .btn-primary-hero,
    .btn-primary-final-cta,
    .btn-tertiary,
    .quality-btn,
    .module-cta,
    .topbar a,
    .mobile-head a,
    .cta-row a,
    .quality-cta a,
    .download-buttons a,
    .hero-buttons a,
    .hero-actions a,
    .final-cta a,
    .seo-final-cta a,
    .quality-hero-cta a,
    .mid-cta a,
    a[href="/go/aapoker"] {
        padding-top: 11px !important;
        padding-bottom: 11px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        font-size: 15px !important;
    }
}
/* AAPoker visual safety patch v3: mobile tables and route-card CTA blocks */
table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

th,
td {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.table-download-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.25 !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}

.route-card,
a.route-card,
.entry-card,
a.entry-card {
    height: auto !important;
    min-height: 0 !important;
    align-items: center !important;
    align-self: center !important;
    line-height: 1.25 !important;
}

.route-card strong,
.route-card small,
.entry-card strong,
.entry-card small {
    line-height: 1.25 !important;
}

@media (max-width: 480px) {
    table {
        font-size: 13px;
    }

    th,
    td {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .route-card,
    a.route-card,
    .entry-card,
    a.entry-card {
        padding: 10px 12px !important;
        gap: 10px !important;
    }
}
/* AAPoker visual safety patch v4: compact route cards and narrow table CTAs */
.route-card,
a.route-card {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 4px 14px !important;
    padding: 14px 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.route-card span {
    width: 42px !important;
    height: 42px !important;
    grid-row: span 2 !important;
    flex: 0 0 auto !important;
}

.route-card strong,
.route-card small {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.table-download-link {
    max-width: 100% !important;
    padding: 4px 6px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: keep-all !important;
}

.info-col-item {
    max-width: 100% !important;
    padding: 22px !important;
}

@media (max-width: 480px) {
    .route-card,
    a.route-card {
        grid-template-columns: 42px minmax(0, 1fr) !important;
        padding: 10px 12px !important;
    }

    .route-card strong {
        font-size: 18px !important;
    }

    .route-card small {
        font-size: 13px !important;
    }

    .info-col-item {
        padding: 18px !important;
    }
}