/* ==================== 诗高地 shigaodi.com 完整 style.css 最终修复版 ==================== */

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

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* 固定顶部导航栏 */
.header {
    background-color: #c62828;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.top-red-bar {
    height: 4px;
    background-color: #8e0000;
}

.site-title-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    min-height: 50px;
    position: relative;            /* 为汉堡菜单提供定位上下文 */
}

.site-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.site-title:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.click-counter {
    color: white;
    font-size: 0.85rem;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==================== 关键修复：手机端汉堡菜单 100% 可用 ==================== */
.nav-toggle {
    /* 彻底放弃 clip 隐藏方式，改用透明 + 可点击区域 */
    opacity: 0;
    position: absolute;
    width: 60px;
    height: 60px;
    top: 0;
    right: 0;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: none;                     /* 桌面端隐藏 */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    padding: 10px;
    cursor: pointer;
    position: relative;
    z-index: 1000;
    -webkit-tap-highlight-color: transparent;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 汉堡包 → X 动画 */
.nav-toggle:checked + .hamburger .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.nav-toggle:checked + .hamburger .bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle:checked + .hamburger .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 移动端下拉菜单 */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.nav-toggle:checked ~ .mobile-nav {
    display: flex;
}

.mobile-nav-button {
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.mobile-nav-button:hover,
.mobile-nav-button:active {
    background-color: #f5f5f5;
}

.mobile-nav-button.active {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.mobile-nav-button:last-child {
    border-bottom: none;
}

/* 桌面端导航 */
.desktop-nav {
    display: flex;
    background-color: white;
    border-top: 1px solid #ddd;
}

.nav-button {
    flex: 1;
    text-align: center;
    padding: 14px 8px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border-right: 1px solid #eee;
    transition: all 0.3s;
    position: relative;
}

.nav-button:last-child { border-right: none; }
.nav-button.active {
    background-color: #e8f5e9;
    color: #2e7d32;
}
.nav-button:hover:not(.active) { background-color: #f5f5f5; }
.nav-button.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 3px;
    background-color: #4caf50;
}

/* 主要内容区 */
.main-content {
    flex: 1;
    margin-top: 110px;
    margin-bottom: 70px;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
    align-self: center;
}

/* 固定底部导航 */
.footer {
    background-color: #c62828;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.bottom-red-bar {
    height: 4px;
    background-color: #8e0000;
}

.mobile-bottom-nav {
    display: flex;
    background-color: white;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger { display: flex; }
    .main-content { margin-top: 100px; padding: 15px; }
    .site-title { font-size: 1.2rem; }
    .click-counter { font-size: 0.8rem; padding: 4px 8px; }
    .footer .nav-button { padding: 12px 4px; font-size: 0.8rem; }
}

@media (min-width: 769px) {
    .mobile-bottom-nav { display: none; }
    .hamburger { display: none !important; }
}

@media (max-width: 480px) {
    .site-title-container { padding: 8px 15px; }
    .site-title { font-size: 1.1rem; }
    .main-content { margin-top: 90px; padding: 12px; }
    .footer .nav-button { padding: 10px 2px; font-size: 0.75rem; }
}

/* ==================== 页面内容样式（全部保留） ==================== */
.page-header {
    background-color: #e8f5e9;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 5px solid #4caf50;
}
.url-link {
    font-size: 0.9rem;
    color: #2e7d32;
    margin-bottom: 8px;
    font-family: monospace;
}
.page-title {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}
.section {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.section h2 {
    color: #c62828;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.section p {
    line-height: 1.8;
    margin-bottom: 15px;
}


/* 诗人、诗刊网格 */
.poet-list-grid,
.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.poet-grid-item,
.journal-item {
    background-color: #f5f5f5;
    padding: 20px 15px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s;
    border: 2px solid #e0e0e0;
    text-decoration: none;
    color: inherit;
    display: block;
}
.poet-grid-item:hover { background-color: #e8f5e9; border-color: #4caf50; }
.journal-item:hover { background-color: #fff8e1; border-color: #ffb300; }
.poet-grid-item:hover,
.journal-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.poet-grid-item h3,
.journal-item h3 {
    color: #c62828;
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.poet-grid-item p,
.journal-item p {
    color: #666;
    font-size: 0.85rem;
}

/* 书籍列表 */
.book-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}
.book-item {
    background-color: #f5f5f5;
    padding: 15px 20px;
    border-radius: 5px;
    border-left: 4px solid #2e7d32;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.book-item:hover {
    background-color: #e8f5e9;
    transform: translateX(5px);
}

/* 联系信息及其他 */
.contact-info {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.address { font-style: italic; color: #666; }

/* 触摸反馈（修复中文字符阴影问题） */
.hamburger:active,
.nav-button:active {
    opacity: 0.7;
}

.mobile-nav-button:active {
    opacity: 1;
    background-color: #e0e0e0;   /* uniform full highlight */
}

/* 完美解决：点 X 能关闭 + 点空白处也能关闭（HTML 零修改） */
@media (max-width: 768px) {
    /* 把 checkbox 扩大到全屏，点任何地方都能切换状态 */
    .nav-toggle:checked ~ .mobile-nav ~ .nav-toggle {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        opacity: 0;
        z-index: 999;
        cursor: pointer;
    }
}


/* 让poetics文件夹内的字母横向展开 */
.poet-grid {
    display: flex;
    gap: 4px;              /* spacing between letters */
    justify-content: center; /* optional: center horizontally */
    flex-wrap: wrap;        /* allows A–Z to wrap to next line */
}

.poet-grid-item {
    text-decoration: none;
}


.book-cover {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 结束 */


/* ===== 将所有人名改为金色 ===== */
.poet-grid-item h3,
.journal-item h3,
.book-item h3,
.poet-list-grid h3,
.journal-grid h3 {
    color: #8d790c !important;  /* 金色 */
}

css
/* ===== 将所有人名改为金色 ===== */
.poet-bio h2:first-of-type,
.poet-header h2:first-of-type,
.poet-detail .poet-bio h2,
.poet-detail .poet-header h2 {
    color: #8d790c !important;  /* 金色 */
}











css
/* ===== 将所有标题改为金色 ===== */

/* 诗人详情页的大标题 */
.poet-detail h2 {
    color: #8d790c !important;
}

/* 诗歌作品的标题 */
.poetry-section h2 {
    color: #8d790c !important;
}

/* 诗作标题 */
.poem h3 {
    color: #8d790c !important;
}

/* 诗人简介标题 */
.poet-bio h2 {
    color: #8d790c !important;
}

/* 页面主标题 */
.page-title {
    color: #8d790c !important;
}

/* 如果还有其他h2标题 */
h2 {
    color: #8d790c !important;
}

/* 确保所有h3也变成金色（如果有） */
h3 {
    color: #8d790c !important;
}






/* ==================== 投稿表单样式 - 重点修复版 ==================== */
.submission-section {
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.submission-form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 22px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.required {
    color: #c62828;
    margin-left: 3px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-group textarea {
    width: 100% !important;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 8px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.submit-btn,
.reset-btn {
    padding: 13px 32px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn {
    background-color: #c62828;
    color: white;
}

.submit-btn:hover {
    background-color: #8e0000;
    transform: translateY(-2px);
}

.reset-btn {
    background-color: #f5f5f5;
    color: #555;
    border: 1px solid #ccc;
}

.reset-btn:hover {
    background-color: #e0e0e0;
}

.form-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.form-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #c62828;
}




/* ==================== 验证码样式 ==================== */
#captchaQuestion {
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    user-select: none;
}

#refreshCaptcha {
    cursor: pointer;
    transition: all 0.3s;
}

#refreshCaptcha:hover {
    background-color: #d5d5d5;
    transform: scale(0.98);
}

#refreshCaptcha:active {
    transform: scale(0.95);
}
