﻿/*
Theme Name: suyihang15
Theme URI: https://suyihang15.com/
Author: suyihang15
Author URI: https://suyihang15.com/
Description: 简洁博客主题，支持评论区、RSS订阅、ICP备案和公安备案信息，个人信息展示，MIT 开源协议。
Version: 1.0
License: MIT License
License URI: https://opensource.org/licenses/MIT
Text Domain: suyihang15
Tags: blog, custom-logo, custom-menu, responsive-layout, translation-ready
*/

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--background-color, #f5f5f5);
    color: var(--text-color, #222);
    line-height: 1.7;
}
a {
    color: var(--primary-color, #1a73e8);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.site-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.site-header {
    padding: 24px 0 16px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.site-branding {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.custom-logo-link img {
    max-width: 220px;
    height: auto;
    border-radius: 12px;
}
.site-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}
.search-form {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 999px;
    padding: 8px 12px;
}
.search-form .search-field {
    border: none;
    outline: none;
    padding: 8px 10px;
    min-width: 180px;
    font: inherit;
    background: transparent;
}
.search-form .search-submit {
    background: var(--primary-color, #1a73e8);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
}
.search-form .search-submit:hover {
    background: var(--primary-color, #1a73e8);
    opacity: 0.8;
}
.site-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.menu-items {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}
.menu-items li {
    margin: 0;
}
.menu-items li a {
    font-size: .95rem;
    color: #333;
}
.menu-fallback {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.menu-fallback a {
    color: #333;
    font-size: .95rem;
}
.site-title a {
    font-size: 1.9rem;
    font-weight: 700;
    color: #111;
}
.site-description {
    margin: 4px 0 0;
    color: #555;
    font-size: .96rem;
}
.site-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.site-nav a {
    font-size: .95rem;
    color: #333;
}
.site-banner {
    background: #fff;
    padding: 18px 22px;
    margin: 20px 0;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .04);
}
.site-banner p {
    margin: 0;
    font-size: 1rem;
    color: #444;
}
.site-main {
    display: grid;
    gap: 28px;
    padding: 24px 0 40px;
}
article {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .04);
    padding: 28px 30px;
}
article header {
    margin-bottom: 18px;
}
.entry-title {
    margin: 0 0 10px;
    font-size: 2rem;
    line-height: 1.1;
}
#post-list {
    display: grid;
    gap: 28px;
}
#load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.load-more-btn {
    background: var(--primary-color, #1a73e8);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 26px;
    cursor: pointer;
    font-weight: 700;
    transition: opacity .2s ease;
}
.load-more-btn:hover {
    opacity: .9;
}
.load-more-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.entry-meta {
    color: #666;
    font-size: .92rem;
}
.entry-content p {
    margin: 1.4rem 0;
}
.entry-footer {
    margin-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, .08);
    padding-top: 18px;
    color: #555;
    font-size: .95rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.comment {
    padding: 18px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    margin-bottom: 16px;
    background: #fcfcfc;
}
.comment-meta {
    font-size: .92rem;
    color: #666;
    margin-bottom: 10px;
}
.comment-content {
    font-size: .98rem;
    color: #333;
}
.comment-form {
    background: #fff;
    padding: 22px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, .08);
}
.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}
.comment-form input,
.comment-form textarea {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
    margin-bottom: 16px;
}
.comment-form button {
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 600;
    cursor: pointer;
}
.site-footer {
    padding: 28px 0 40px;
    color: #555;
    font-size: .95rem;
    border-top: 1px solid rgba(0, 0, 0, .08);
}
.footer-actions {
    margin-bottom: 18px;
}
.donate-details {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 15px;
    padding: 14px 18px;
}
.donate-details summary {
    cursor: pointer;
    font-weight: 700;
    color: #111;
    list-style: none;
}
.donate-details summary::-webkit-details-marker {
    display: none;
}
.donation-qr {
    max-width: 180px;
    display: block;
    margin: 12px 0;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
}
.donate-details p {
    margin: 12px 0 0;
    color: #444;
}
.donate-box strong,
.donate-box a {
    color: #1a73e8;
}
.site-footer p {
    margin: 0 0 8px;
}
.home-hero {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 24px;
    align-items: stretch;
    margin: 24px 0 0;
}
.hero-cover {
    position: relative;
    min-height: 320px;
    border-radius: 22px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .1);
}
.hero-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 17, 34, 0.20), rgba(10, 17, 34, 0.55));
}
.hero-cover-body {
    position: relative;
    z-index: 1;
    padding: 32px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    color: #fff;
}
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: .88rem;
    letter-spacing: .02em;
}
.hero-cover-body h2 {
    margin: 0;
    font-size: clamp(2rem, 2.7vw, 3rem);
    line-height: 1.05;
}
.hero-cover-body p {
    max-width: 560px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .92);
}
.hero-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.hero-highlight-item {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    padding: 18px 20px;
}
.hero-highlight-item strong {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}
.hero-highlight-item span {
    font-size: .95rem;
    color: rgba(255, 255, 255, .88);
}
.hero-profile-card {
    background: #fff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, .06);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 5px solid #fff;
    box-shadow: 0 16px 35px rgba(0, 0, 0, .09);
    align-self: center;
}
.profile-card-content {
    display: grid;
    gap: 16px;
}
.profile-name {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
    color: #111;
    text-align: center;
}
.profile-role {
    margin: 0;
    color: #1a73e8;
    font-weight: 700;
    text-align: center;
}
.profile-intro {
    margin: 0;
    color: #555;
    line-height: 1.8;
    text-align: center;
}
.profile-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}
.profile-meta li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 15px;
    background: #f8fbff;
}
.profile-meta strong {
    color: #333;
}
.profile-meta span {
    color: #555;
    text-align: right;
}
@media (max-width: 1024px) {
    .home-hero {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .site-header,
    .site-footer,
    .site-banner {
        padding-left: 0;
        padding-right: 0;
    }
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .site-nav {
        width: 100%;
        justify-content: flex-start;
    }
    .entry-title {
        font-size: 1.6rem;
    }
}
.homepage-profile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
    align-items: center;
}
.profile-cover img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .1);
}
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.profile-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}
.profile-tagline {
    font-size: 1.2rem;
    color: #1a73e8;
    font-weight: 600;
    margin: 0;
}
.profile-intro {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}
.profile-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}
.profile-details span {
    background: #f0f4ff;
    color: #1a73e8;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}
@media (max-width: 768px) {
    .homepage-profile {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .profile-title {
        font-size: 2rem;
    }
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .site-tools {
        width: 100%;
        justify-content: space-between;
    }
}
}
    .site-header,
    .site-footer,
    .site-banner {
        padding-left: 0;
        padding-right: 0;
    }
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .site-nav {
        width: 100%;
        justify-content: flex-start;
    }
    .entry-title {
        font-size: 1.6rem;
    }
}
