* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --bg-alt: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

.header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 500px;
}

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

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 24px;
}

.hero-features {
    list-style: none;
    margin-bottom: 32px;
}

.hero-features li {
    padding: 8px 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero-screenshot {
    flex: 1;
    max-width: 400px;
    text-align: center;
}

/* 轮播组件样式 */
.screenshot-carousel {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.carousel-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.carousel-slide .screenshot-img {
    width: auto;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    display: block;
}

.screenshot-label {
    margin-top: 12px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    backdrop-filter: blur(10px);
}

/* 轮播按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* 指示器点 */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* 旧的截图样式兼容 */
.hero-screenshot .screenshot-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.15);
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

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

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

.features {
    padding: 80px 0;
}

.features h2,
.formats h2,
.scenarios h2,
.contact h2,
.detail-section h2,
.values-section h2,
.screenshot-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 16px;
}

.screenshot-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.screenshot-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.screenshot-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.section-desc {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 48px;
}

.tips-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.tips-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.tips-content h3 {
    font-size: 1.5rem;
    color: #92400e;
    margin-bottom: 32px;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: white;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-text strong {
    display: block;
    font-size: 1.1rem;
    color: #92400e;
    margin-bottom: 6px;
}

.tip-text p {
    color: #78350f;
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

.formats {
    padding: 80px 0;
    background: var(--bg-light);
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.format-item {
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-color);
}

.format-tag {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.format-item code {
    background: var(--bg-alt);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
}

.formats-more {
    text-align: center;
    color: var(--text-light);
    margin-top: 24px;
    font-style: italic;
}

.scenarios {
    padding: 80px 0;
}

.scenarios-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.scenario-item {
    padding: 24px;
    border-left: 4px solid var(--primary-color);
    background: var(--bg-light);
    border-radius: 0 8px 8px 0;
}

.scenario-item h3 {
    margin-bottom: 12px;
    color: var(--primary-color);
}

.scenario-item p {
    color: var(--text-light);
}

.contact {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-desc {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 32px;
}

.contact-info {
    max-width: 500px;
    margin: 0 auto;
}

.contact-placeholder {
    background: white;
    padding: 48px;
    border-radius: 12px;
    text-align: center;
    border: 2px dashed var(--border-color);
}

.contact-placeholder p {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-hint {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer {
    background: var(--text-color);
    color: white;
    padding: 24px 0;
    text-align: center;
}

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.page-header p {
    opacity: 0.9;
}

.detail-section {
    padding: 80px 0;
}

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

.detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.detail-text p {
    margin-bottom: 24px;
    color: var(--text-light);
}

.detail-text h3 {
    margin: 32px 0 16px;
}

.detail-text ul {
    list-style: none;
    margin-top: 16px;
}

.detail-text li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-light);
}

.detail-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.play-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.play-type-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.play-type-card h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-alt);
}

.play-type-card ul {
    list-style: none;
}

.play-type-card li {
    padding: 8px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--bg-alt);
}

.play-type-card li:last-child {
    border-bottom: none;
}

.amount-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.amount-type {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
}

.amount-type h3 {
    margin-bottom: 12px;
}

.amount-type p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.example-box {
    background: white;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.example-box code {
    background: var(--bg-alt);
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
}

.example-box .result {
    color: var(--primary-color);
    font-weight: 500;
}

.examples-table {
    overflow-x: auto;
    margin-top: 48px;
}

.examples-table table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.examples-table th,
.examples-table td {
    padding: 16px 20px;
    text-align: left;
}

.examples-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.examples-table tr:not(:last-child) td {
    border-bottom: 1px solid var(--bg-alt);
}

.examples-table td code {
    background: var(--bg-alt);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
}

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 16px;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 32px;
}

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

.about-section {
    padding: 80px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    text-align: center;
    margin-bottom: 32px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.values-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.value-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.value-card:hover {
    transform: translateY(-4px);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.value-card h3 {
    margin-bottom: 12px;
}

.value-card p {
    color: var(--text-light);
}

.contact-section {
    padding: 80px 0;
}

.contact-section h2 {
    text-align: center;
}

.contact-box {
    max-width: 500px;
    margin: 0 auto;
}

.articles-section {
    padding: 80px 0;
}

.articles-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 16px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.article-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
}

.article-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.article-card h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.article-card h3 a:hover {
    color: var(--primary-color);
}

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

.article-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.articles-more {
    text-align: center;
    margin-top: 32px;
}

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

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

.articles-page {
    padding: 60px 0;
}

.articles-list {
    max-width: 800px;
    margin: 0 auto;
}

.article-item {
    padding: 32px 0;
    border-bottom: 1px solid var(--border-color);
}

.article-item:last-child {
    border-bottom: none;
}

.article-item .article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.article-item .article-date {
    color: var(--text-light);
}

.article-item h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.article-item h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.article-item h2 a:hover {
    color: var(--primary-color);
}

.article-item p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.7;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.read-more:hover {
    color: var(--primary-hover);
}

.article-page {
    padding: 60px 0;
}

.article-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
    font-size: 2rem;
    margin: 16px 0;
    line-height: 1.4;
}

.article-header .article-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: var(--text-light);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.article-content h3 {
    font-size: 1.2rem;
    margin: 24px 0 12px;
}

.article-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--text-light);
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-content code {
    background: var(--bg-alt);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
}

.code-example {
    background: var(--bg-light);
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.code-example code {
    display: block;
    background: white;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.code-example code:last-child {
    margin-bottom: 0;
}

.example-result {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-top: 8px;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-table th,
.article-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--bg-alt);
}

.article-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

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

.article-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.article-tags {
    margin-bottom: 16px;
}

.article-tags span {
    color: var(--text-light);
    margin-right: 8px;
}

.article-tags a {
    display: inline-block;
    background: var(--bg-alt);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    margin-right: 8px;
    transition: all 0.2s;
}

.article-tags a:hover {
    background: var(--primary-color);
    color: white;
}

.article-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.related-articles {
    padding: 60px 0;
    background: var(--bg-light);
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        height: auto;
        padding: 16px 0;
        gap: 16px;
    }

    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 60px 0;
        min-height: auto;
    }

    .hero-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-features {
        text-align: left;
        display: inline-block;
    }

    .hero-screenshot {
        max-width: 300px;
    }

    .features,
    .formats,
    .scenarios,
    .contact,
    .detail-section,
    .about-section,
    .values-section,
    .contact-section,
    .articles-section {
        padding: 48px 0;
    }

    .page-header {
        padding: 40px 0;
    }

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

    .article-header h1 {
        font-size: 1.5rem;
    }

    .article-content h2 {
        font-size: 1.25rem;
    }

    .article-item h2 {
        font-size: 1.25rem;
    }
}

.float-contact {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
}

.float-contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.float-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.float-contact-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.float-contact-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
}

.panel-header h3 {
    color: white;
    font-size: 1rem;
    margin: 0;
}

.close-btn {
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close-btn:hover {
    opacity: 1;
}

.panel-content {
    padding: 20px;
}

.contact-placeholder-float {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.contact-placeholder-float p {
    margin-bottom: 8px;
    color: var(--text-color);
}

.contact-placeholder-float .contact-hint {
    color: var(--text-light);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .float-contact {
        right: 16px;
        bottom: 16px;
    }

    .float-contact-btn {
        padding: 10px 20px;
    }

    .contact-text {
        display: none;
    }

    .contact-icon {
        font-size: 1.4rem;
    }

    .float-contact-panel {
        width: 280px;
        right: -10px;
    }
}
