/*
Theme Name: k51jizhang
Theme URI: https://jizhang.king51.com/
Description: 轻松记账 App 宣传主题 - 简洁高效的单页宣传网站
Version: 1.0.0
Author: King51
Author URI: https://king51.com/
Tags: one-column, custom-colors, custom-logo, featured-images, flexible-header, portfolio, right-sidebar, sticky-post, threaded-comments, translation-ready
Text Domain: k51jizhang
*/

:root {
    --primary-color: #dc2626;
    --primary-dark: #b91c1c;
    --primary-light: #fee2e2;
    --secondary-color: #ef4444;
    --secondary-dark: #dc2626;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #fef2f2;
    --border-color: #fee2e2;
    --white: #ffffff;
    --dark: #1f2937;
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .feature-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .mobile-menu-btn span {
        transition: none;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-image {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

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

.nav-links li {
    display: inline-block;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.download-btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

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

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

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

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    padding: 12px 24px;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 16px;
    font-weight: 500;
}

.mobile-menu a:hover {
    color: var(--primary-color);
}

.hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 72px;
    background: white;
}

.hero-content {
    text-align: center;
    padding: 60px 24px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-download {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-download .app-store-btn img {
    height: 60px;
    width: auto;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.hero-download .app-store-btn:hover img {
    transform: translateY(-2px);
}

.hero-qr {
    text-align: center;
}

.hero-qr img {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    background: white;
    padding: 8px;
    margin-bottom: 8px;
}

.hero-qr p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}

.features {
    padding: 100px 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 500px;
    margin: 0 auto;
}

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

.feature-card {
    text-align: center;
    padding: 40px 24px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.1);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-light), #fee2e2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
}

.about-preview {
    padding: 100px 0;
    background: white;
}

.about-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.about-row:last-child {
    margin-bottom: 0;
}

.about-row.reverse {
    flex-direction: row-reverse;
}

.about-image {
    flex: 1;
    max-width: 450px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-content {
    flex: 1;
}

.about-content h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

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

.site-footer {
    padding: 64px 0 32px;
    background: var(--dark);
    color: white;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    margin-bottom: 12px;
}

.footer-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.footer-logo span {
    font-size: 18px;
    font-weight: 600;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.footer-links-group {
    display: flex;
    gap: 48px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links-col a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links-col a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .copyright {
    color: var(--text-light);
    font-size: 13px;
}

.page-content,
.single-post,
.archive-category,
.tag-page,
.author-page,
.search-page {
    padding: 120px 0 80px;
    background: white;
}

.page-content .entry-title,
.single-post .entry-title,
.archive-title,
.search-title,
.author-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.entry-meta {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.entry-meta span {
    margin-right: 16px;
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.entry-content p {
    margin-bottom: 16px;
}

.entry-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px;
}

.entry-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px;
}

.entry-content ul,
.entry-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 8px;
}

.entry-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.entry-content a:hover {
    text-decoration: underline;
}

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

.read-more {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.posts-list {
    display: grid;
    gap: 32px;
}

.posts-list article {
    padding: 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.posts-list .entry-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.posts-list .entry-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.posts-list .entry-title a:hover {
    color: var(--primary-color);
}

.posts-list .entry-summary {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.navigation {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}

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

.nav-links-pagination a {
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-links-pagination a:hover {
    background: var(--primary-color);
    color: white;
}

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

.comments-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list > li {
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--text-dark);
}

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

.comment-content {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

.comment-reply-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.comment-form {
    max-width: 100%;
}

.comment-form p {
    margin-bottom: 16px;
}

.comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.comment-form input,
.comment-form textarea,
.wp-block-post-comments-form .comment-form input,
.wp-block-post-comments-form .comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.comment-form textarea,
.wp-block-post-comments-form .comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus,
.wp-block-post-comments-form .comment-form input:focus,
.wp-block-post-comments-form .comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form .form-submit {
    margin-top: 16px;
}

.comment-form .comment-form-cookies-consent,
.wp-block-post-comments-form .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.comment-form .comment-form-cookies-consent input[type="checkbox"],
.wp-block-post-comments-form .comment-form-cookies-consent input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    flex-shrink: 0;
}

.comment-form .comment-form-cookies-consent label,
.wp-block-post-comments-form .comment-form-cookies-consent label {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.5;
}

.comment-form input[type="submit"],
.wp-block-post-comments-form .comment-form .submit,
.wp-block-post-comments-form .comment-form input[type="submit"] {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.comment-form input[type="submit"]:hover,
.wp-block-post-comments-form .comment-form .submit:hover,
.wp-block-post-comments-form .comment-form input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.attachment-page {
    padding: 120px 0 80px;
}

.attachment-page .attachment-image {
    margin: 24px 0;
}

.attachment-page .attachment-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.attachment-meta {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.error-404 {
    padding: 120px 0;
    text-align: center;
    background: white;
}

.error-title {
    font-size: 96px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.error-subtitle {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.error-description {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 32px;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.archive-page {
    padding: 120px 0 80px;
    background: white;
}

.wp-block-post-comments-form {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.comment-notes {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.required-field-message {
    font-size: 13px;
    color: var(--text-gray);
}

.author-bio {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.author-bio img {
    border-radius: 50%;
}

.author-bio p {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
}

.archive-description {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 32px;
}

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

    .hero p {
        font-size: 15px;
    }

    .hero-content {
        padding: 40px 16px;
    }

    .nav-links {
        display: none;
    }

    .download-btn {
        display: none;
    }

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

    .section-title {
        margin-bottom: 48px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .section-title p {
        font-size: 15px;
    }

    .features {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 28px 20px;
    }

    .about-preview {
        padding: 60px 0;
    }

    .about-row {
        flex-direction: column;
        gap: 32px;
        margin-bottom: 48px;
    }

    .about-row.reverse {
        flex-direction: column;
    }

    .about-image {
        max-width: 100%;
    }

    .about-content h3 {
        font-size: 22px;
    }

    .about-content p {
        font-size: 15px;
    }

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

    .footer-brand {
        max-width: none;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links-group {
        flex-wrap: wrap;
        justify-content: center;
        gap: 32px;
    }

    .navigation {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links-pagination {
        flex-wrap: wrap;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .error-title {
        font-size: 64px;
    }

    .error-subtitle {
        font-size: 24px;
    }

    .comment-form input,
    .comment-form textarea {
        padding: 10px 14px;
        font-size: 14px;
    }

    .comment-form input[type="submit"] {
        width: 100%;
        padding: 14px;
    }

    .comment-author {
        flex-wrap: wrap;
    }

    .comment-list > li {
        padding: 16px;
    }

    .wp-block-post-comments-form .comment-form input,
    .wp-block-post-comments-form .comment-form textarea {
        padding: 10px 14px;
        font-size: 14px;
    }

    .wp-block-post-comments-form .comment-form .submit,
    .wp-block-post-comments-form .comment-form input[type="submit"] {
        width: 100%;
        padding: 14px;
    }

    .page-content,
    .single-post,
    .archive-page,
    .archive-category {
        padding: 100px 0 60px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero-download {
        flex-direction: column;
        gap: 24px;
    }

    .hero-download .app-store-btn img {
        width: 180px;
        height: auto;
    }

    .hero-qr img {
        width: 100px;
        height: 100px;
    }

    .feature-card {
        padding: 24px 16px;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .page-content .entry-title,
    .single-post .entry-title,
    .archive-title,
    .search-title,
    .author-title {
        font-size: 22px;
    }

    .entry-content {
        font-size: 15px;
    }

    .error-title {
        font-size: 48px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
}
