/*
Theme Name: 我的空白主题
Author: 你
Description: 极简空白主题，只有投票和留言
Version: 1.0
*/

/* ===== 全局重置 ===== */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #fafafa;
}
/* ===== 顶部 H1 标题 ===== */
.site-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin: 30px 20px 20px;
    padding: 0;
    letter-spacing: 1px;
}
/* ===== 主容器 ===== */
.main-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.comment-guide{
    font-size: 18px;
    margin: 20px 0 10px;
    color: #333;
    text-align: center;
}

.comment-guide {
    text-align: center;
    font-size: 18px;
    color: #444;
    margin: 40px 0 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.comment-guide::before,
.comment-guide::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #bbb, transparent);
}








/* ===== 底部声明 ===== */
.site-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #eee;
    margin-top: 40px;
    font-size: 14px;
    color: #666;
}

/* ===== 底部样式 ===== */
.site-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    margin-top: 40px;
    font-size: 14px;
    color: #666;
}

.footer-content {
    display: flex;
    justify-content: center;      /* 整体居中 */
    align-items: center;
    flex-wrap: wrap;              /* 窄屏时自动换行 */
    gap: 10px 20px;              /* 上下间距10px，左右间距20px */
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 15px;                   /* 链接之间的间距 */
    flex-wrap: wrap;
}

.footer-links a {
    color: #666;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/*自定义的*/

/* ===== 正文区样式 ===== */
.main-container p:first-of-type {
    font-size: 18px;
    line-height: 1.9;
    color: #1e293b;
    background: #ffffff;
    padding: 28px 32px;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.main-container p:first-of-type strong {
    color: #0f172a;
}



/* ===== 投票标题 h2 ===== */
.main-container h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin: 8px 0 4px;
    letter-spacing: -0.3px;
	   margin-top: 50px;
}

/* ===== 投票标题下方的装饰线 ===== */
.main-container h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    margin: 10px auto 0;
    border-radius: 4px;
}
.comment-guide,
p.jiacu:last-of-type {
    text-align: center !important;
}


/* ===== YOP Poll 投票按钮美化 ===== */

.yop-poll-container .yop-poll-answers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.yop-poll-container .yop-poll-answers .yop-poll-answer {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 60px;
    padding: 12px 28px !important;
    font-size: 16px !important;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.25s ease;
    cursor: pointer;
}

.yop-poll-container .yop-poll-answers .yop-poll-answer:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    transform: translateY(-2px);
}

.yop-poll-container .yop-poll-answers .yop-poll-answer input[type="radio"] {
    margin-right: 10px;
    accent-color: #3b82f6;
    transform: scale(1.15);
}

.yop-poll-container .yop-poll-submit {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 60px;
    padding: 12px 48px;
    font-size: 17px;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}

.yop-poll-container .yop-poll-submit:hover {
    background: #2563eb;
    transform: translateY(-2px);
}


/* ===== 投票结果展示区 ===== */

.results-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px 24px;
    margin-top: 24px;
    border: 1px solid #e9edf2;
}

.results-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.results-section .result-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 6px;
}

.results-section .result-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.results-section .result-row .label {
    width: 100px;
    font-weight: 500;
    color: #334155;
    flex-shrink: 0;
    text-align: left;
}

.results-section .result-row .bar-track {
    flex: 1;
    height: 10px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
}

.results-section .result-row .bar-fill {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    width: 0%;
    transition: width 0.6s ease;
}

.results-section .result-row .bar-fill.flat {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.results-section .result-row .pct {
    width: 64px;
    font-weight: 600;
    color: #0f172a;
    text-align: right;
    flex-shrink: 0;
}

.results-section .total-votes {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 10px;
    text-align: left;
}
