/* ============================================================
   前台组件样式整合文件
   原散落于各 PHP 文件 <style> 标签中的样式，统一整理到此
   包含：留言板、公告、评论、404页面、通用组件
   ============================================================ */


/* ============================================================
   1. 留言板样式（原 page/guestbook.php）
   ============================================================ */

/* ----- 成功横幅 ----- */
.success-banner {
    background: #1e1e1e;
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

/* ----- 消息提示 ----- */
.message {
    padding: 8px 14px;
    background: #f5f5f5;
    border-left: 3px solid #0066cc;
    margin: 8px 0 12px 0;
    font-size: 0.95rem;
}
.message i { margin-right: 6px; }

/* ----- 排行榜 ----- */
.ranking-box {
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    padding: 14px 18px;
    margin: 0 0 20px 0;
}
.ranking-box h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}
.ranking-box h3 i { color: #0066cc; margin-right: 6px; }
.ranking-list { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.ranking-item { flex: 1; min-width: 160px; }
.ranking-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    font-size: 0.85rem;
}
.ranking-name { color: #1e1e1e; }
.ranking-name strong { font-weight: 600; }
.ranking-count { color: #999; font-size: 0.8rem; }
.ranking-bar { height: 5px; background: #e8e8e8; overflow: hidden; }
.ranking-fill { height: 100%; transition: width 0.3s; }

/* ----- 留言列表 ----- */
.gb-empty { color: #888; padding: 8px 0; }
.gb-empty i { margin-right: 6px; }
.gb-thread { list-style: none; padding: 0; margin: 0; }
.gb-thread .gb-thread { padding-left: 24px; }
.gb-item { border-bottom: 1px solid #f0f0f0; padding: 10px 0; }
.gb-item:last-child { border-bottom: none; }
.gb-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.gb-author { color: #1e1e1e; }
.gb-badge-admin {
    background: #1565c0;
    color: #fff;
    font-size: 0.65rem;
    padding: 0 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.gb-badge-admin i { font-size: 0.6rem; }
.gb-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #e8f0fe;
    color: #0066cc;
    font-size: 0.7rem;
    padding: 0 8px;
    text-decoration: none;
    transition: background 0.15s;
}
.gb-badge-link:hover { background: #d0e0f5; text-decoration: none; }
.gb-time { font-size: 0.75rem; color: #999; }
.gb-time i { margin-right: 2px; }
.gb-body {
    word-break: break-word;
    color: #1e1e1e;
    font-size: 0.95rem;
    padding: 2px 0 4px 0;
    line-height: 1.6;
}
.gb-actions { margin-top: 2px; }
.gb-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #0066cc;
    text-decoration: none;
    background: #e8f0fe;
    transition: all 0.15s;
    border: none;
    cursor: pointer;
}
.gb-reply-link:hover { background: #0066cc; color: #fff; text-decoration: none; }
.gb-reply-link i { font-size: 0.7rem; }

/* ----- 留言表单 ----- */
.gb-form { margin: 8px 0 4px 0; }
.gb-form-row { margin: 8px 0; }
.gb-form-row label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.gb-form-row label .required { color: #d32f2f; }
.gb-form-row input[type="text"],
.gb-form-row input[type="email"],
.gb-form-row input[type="url"],
.gb-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-size: 0.95rem;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
}
.gb-form-row input:focus,
.gb-form textarea:focus { border-color: #0066cc; outline: none; }
.gb-form textarea { resize: vertical; min-height: 80px; }

/* 文本框 + emoji 按钮容器 */
.gb-textarea-wrapper { position: relative; display: block; width: 100%; }
.gb-textarea-wrapper textarea { width: 100%; padding-right: 44px; }

/* 验证码 */
.gb-captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gb-captcha input[type="text"] { width: 140px; margin: 0; }
.gb-captcha-img { cursor: pointer; border: 1px solid #ccc; height: 36px; }
.gb-captcha-img:hover { border-color: #999; }
.gb-captcha-hint { font-size: 0.75rem; color: #888; }

/* 记住我 */
.gb-remember { margin: 6px 0 4px 0; }
.gb-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-weight: 400 !important;
    font-size: 0.85rem !important;
    color: #888;
    cursor: pointer;
}
.gb-checkbox-label input[type="checkbox"] { margin: 0; }

/* 回复目标提示 */
.gb-reply-to {
    font-size: 0.85rem;
    font-weight: 400;
    color: #0066cc;
    margin-left: 6px;
}
.gb-reply-to:empty { display: none; }

/* ----- emoji ----- */
#emoji-toggle {
    position: absolute;
    right: 6px;
    bottom: 6px;
    background: #fff;
    border: 1px solid #ddd;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 0;
    transition: all 0.2s;
    line-height: 1;
}
#emoji-toggle:hover { background: #e8f0fe; color: #0066cc; border-color: #90caf9; }
.emoji-panel {
    display: none;
    flex-wrap: wrap;
    gap: 1px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 6px;
    margin: 0 0 8px 0;
    max-width: 380px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}
.emoji-btn {
    background: none;
    border: 1px solid transparent;
    font-size: 18px;
    cursor: pointer;
    padding: 1px 2px;
    border-radius: 0;
    line-height: 1.2;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}
.emoji-btn:hover { background: #e8f0fe; border-color: #90caf9; transform: scale(1.25); }

/* ----- 提交按钮 ----- */
.gb-submit-btn {
    background: #0066cc;
    color: #fff;
    border: none;
    padding: 8px 22px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.gb-submit-btn:hover { background: #004d99; }
.gb-submit-btn i { margin-right: 2px; }

/* ----- 留言板深色模式 ----- */
.dark-mode .success-banner { background: #2a2a2a; }
.dark-mode .message { background: #262626; border-color: #66b3ff; color: #ccc; }
.dark-mode .ranking-box { background: #262626; border-color: #333; }
.dark-mode .ranking-box h3 { color: #e0e0e0; }
.dark-mode .ranking-name { color: #e0e0e0; }
.dark-mode .ranking-bar { background: #333; }
.dark-mode .gb-item { border-color: #333; }
.dark-mode .gb-author { color: #e0e0e0; }
.dark-mode .gb-badge-link { background: #1a3a5c; color: #66b3ff; }
.dark-mode .gb-badge-link:hover { background: #1a4a6c; }
.dark-mode .gb-body { color: #ccc; }
.dark-mode .gb-reply-link { background: #1a3a5c; color: #66b3ff; }
.dark-mode .gb-reply-link:hover { background: #66b3ff; color: #121212; }
.dark-mode .gb-form-row input[type="text"],
.dark-mode .gb-form-row input[type="email"],
.dark-mode .gb-form-row input[type="url"],
.dark-mode .gb-form textarea { background: #2a2a2a; border-color: #444; color: #e0e0e0; }
.dark-mode .gb-form-row input:focus,
.dark-mode .gb-form textarea:focus { border-color: #66b3ff; }
.dark-mode .gb-form-row label { color: #ccc; }
.dark-mode #emoji-toggle { background: #2a2a2a; border-color: #444; color: #888; }
.dark-mode #emoji-toggle:hover { background: #1a3a5c; color: #66b3ff; }
.dark-mode .emoji-panel { background: #2a2a2a; border-color: #444; }
.dark-mode .emoji-btn:hover { background: #3a3a3a; }
.dark-mode .gb-submit-btn { background: #66b3ff; color: #121212; }
.dark-mode .gb-submit-btn:hover { background: #99ccff; }
.dark-mode .gb-captcha-img { border-color: #444; }
.dark-mode .gb-captcha-hint { color: #666; }
.dark-mode .gb-checkbox-label { color: #888; }
.dark-mode .gb-reply-to { color: #66b3ff; }
.dark-mode .gb-empty { color: #888; }

/* ----- 留言板移动端适配 ----- */
@media (max-width: 768px) {
    .ranking-item { min-width: 100%; }
    .gb-thread .gb-thread { padding-left: 12px; }
    .gb-meta { font-size: 0.85rem; gap: 2px 6px; }
    .gb-body { font-size: 0.9rem; }
    .gb-badge-admin { font-size: 0.6rem; padding: 0 6px; }
    .gb-badge-link { font-size: 0.65rem; padding: 0 6px; }
    .gb-captcha { flex-wrap: wrap; }
    .gb-captcha input[type="text"] { width: 100%; max-width: 160px; }
    .gb-submit-btn { width: 100%; justify-content: center; padding: 10px; }
    .emoji-panel { max-width: 100%; }
}
@media (max-width: 480px) {
    .ranking-box { padding: 10px 12px; }
    .ranking-item { min-width: 100%; }
    .gb-thread .gb-thread { padding-left: 8px; }
    .gb-item { padding: 8px 0; }
    .gb-meta { font-size: 0.8rem; }
    .gb-body { font-size: 0.85rem; }
    .gb-form-row input, .gb-form textarea { font-size: 0.85rem; }
    .gb-captcha input[type="text"] { max-width: 120px; }
    .emoji-btn { width: 26px; height: 26px; font-size: 16px; }
}


/* ============================================================
   2. 公告页面样式（原 page/announcements.php）
   ============================================================ */

.announcement-card {
    background: #fff9c4;
    border-left: 4px solid #fbc02d;
    padding: 12px 16px;
    margin-bottom: 12px;
    transition: background 0.2s;
}
.announcement-card:hover { background: #fff5a8; }
.announcement-title {
    margin: 0 0 4px 0;
    font-weight: 600;
    color: #5d4037;
    font-size: 1rem;
}
.announcement-title a { color: #5d4037; text-decoration: none; transition: color 0.15s; }
.announcement-title a:hover { color: #3e2a1f; text-decoration: underline; }
.announcement-title i { margin-right: 4px; }
.announcement-content {
    margin: 0 0 2px 0;
    color: #5d4037;
    font-size: 0.9rem;
    line-height: 1.5;
}
.announcement-date { color: #8d6e63; font-size: 0.8rem; }
.announcement-date i { margin-right: 2px; }
.announcement-empty { color: #888; padding: 8px 0; }
.announcement-empty i { margin-right: 6px; }

/* 公告深色模式 */
.dark-mode .announcement-card { background: #2a2518; border-left-color: #b8860b; }
.dark-mode .announcement-card:hover { background: #332d1e; }
.dark-mode .announcement-title { color: #e8d5a3; }
.dark-mode .announcement-title a { color: #e8d5a3; }
.dark-mode .announcement-title a:hover { color: #f5e6c8; }
.dark-mode .announcement-content { color: #d4c5a0; }
.dark-mode .announcement-date { color: #a8906a; }
.dark-mode .announcement-empty { color: #888; }

/* 公告移动端适配 */
@media (max-width: 768px) {
    .announcement-card { padding: 10px 14px; margin-bottom: 10px; }
    .announcement-title { font-size: 0.95rem; }
    .announcement-content { font-size: 0.85rem; }
}
@media (max-width: 480px) {
    .announcement-card { padding: 8px 12px; margin-bottom: 8px; }
    .announcement-title { font-size: 0.9rem; }
    .announcement-content { font-size: 0.8rem; }
    .announcement-date { font-size: 0.7rem; }
}


/* ============================================================
   3. 评论区样式（原 page/comments.php）
   ============================================================ */

.comment-body { word-break: break-word; }
#emoji-panel { display: flex; flex-wrap: wrap; }
#emoji-toggle:hover { background: #E3F2FD; color: var(--primary); border-radius: 4px; }


/* ============================================================
   4. 404 页面样式（原 404.php）
   ============================================================ */

.site-title a { color: var(--text); text-decoration: none; }
.site-title a:hover { color: var(--primary); }
.error-page { text-align: center; padding: 40px 20px; }
.error-page h2 {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1;
    border: none;
}
.error-page h3 {
    font-size: 22px;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 12px 0 8px;
}
.error-page p { color: var(--text-hint); font-size: 14px; margin-bottom: 28px; }
.error-page .home-link {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}
.error-page .home-link:hover { background: var(--primary-dark); color: #fff; }
.recommend-section { margin-top: 30px; text-align: left; }
.recommend-section h4 { font-size: 16px; margin-bottom: 12px; color: var(--text); }
.recommend-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.recommend-list a {
    display: block;
    padding: 10px 14px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}
.recommend-list a:hover { background: var(--primary-bg); color: var(--primary); }
.footer { margin-top: 30px; }


/* ============================================================
   5. 维护页面样式（原 includes/helpers.php maintenanceCheck）
   ============================================================ */

.maintenance-page * { margin: 0; padding: 0; box-sizing: border-box; }
.maintenance-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}
.maintenance-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 48px 32px;
    text-align: center;
    max-width: 480px;
    width: 100%;
}
.maintenance-card h1 { font-size: 24px; color: #333; margin-bottom: 12px; }
.maintenance-card p { font-size: 15px; color: #666; line-height: 1.6; }
.maintenance-card .icon { font-size: 48px; margin-bottom: 16px; }


/* ============================================================
   6. 关于页面内联样式（原 about.php <style> 块）
   ============================================================ */

.menu-toggle {
    display: none;
    background: none;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    font-size: 16px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
}
.menu-toggle:hover { background: var(--surface); }

/* IP 黑名单展示 */
.blacklist-box {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
}
.blacklist-box h2 { color: #ff4444; border-bottom-color: #333; }
.blacklist-box .blocked-ip {
    display: inline-block;
    background: #2a2a2a;
    color: #ff6666;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    margin: 3px;
    border: 1px solid #444;
}
.blacklist-empty { color: #888; text-align: center; padding: 20px; font-style: italic; }

/* 模块折叠 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
    transition: color 0.2s;
}
.section-header:hover { color: var(--primary); }
.section-header .toggle-icon {
    font-size: 12px;
    color: var(--text-hint);
    transition: transform 0.3s ease;
    margin-left: 8px;
    flex-shrink: 0;
}
.section-collapsed .section-content { display: none; }
.section-collapsed .toggle-icon { transform: rotate(-90deg); }

/* 更新日志折叠 */
.changelog-version {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}
.changelog-version:hover { color: var(--primary); }
.changelog-version .fa-chevron-down {
    transition: transform 0.3s ease;
    margin-left: 4px;
    font-size: 10px;
    vertical-align: middle;
}
.changelog-item.collapsed .changelog-list { display: none; }
.changelog-item.collapsed .changelog-version .fa-chevron-down { transform: rotate(-90deg); }

/* 标签云动效 */
.tag-cloud-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    line-height: 2.2;
    overflow: hidden;
}
.tag-cloud-item {
    display: inline-block;
    padding: 4px 10px;
    margin: 0 2px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    animation: tagFloat 4s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.3s);
}
.tag-cloud-item:hover {
    transform: scale(1.25) translateY(-3px);
    z-index: 10;
    box-shadow: 0 4px 16px rgba(66,133,244,0.3);
    color: #fff !important;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}
@keyframes tagFloat {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-4px); }
    75% { transform: translateY(2px); }
}
.tag-cloud-empty {
    color: var(--text-hint);
    font-style: italic;
    width: 100%;
}

/* 关于页面移动端适配 */
@media (max-width: 600px) {
    .menu-toggle { display: inline-flex; align-items: center; gap: 6px; }
    nav {
        display: none;
        flex-wrap: wrap;
        gap: 4px;
        background: var(--surface);
        border-radius: var(--radius);
        border: 1px solid var(--border);
        padding: 8px;
        margin-top: 8px;
    }
    nav.show { display: flex; }
    nav a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        font-size: 13px;
        border-radius: var(--radius-sm);
        color: var(--text);
        text-decoration: none;
        font-weight: 500;
        background: #fff;
        border: 1px solid var(--divider);
        transition: all 0.15s;
        white-space: nowrap;
    }
    nav a:hover { background: #E8F0FE; color: var(--primary); border-color: var(--primary); }
    nav a i { color: var(--primary); font-size: 13px; }
    .tag-cloud-section { padding: 14px; min-height: 120px; }
    .tag-cloud-item { padding: 3px 8px; margin: 0 1px; }
}

/* ============================================================
   12. 友链页面样式
   ============================================================ */

/* 友链状态指示器 */
.link-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}
.link-status-alive { background: #0F9D58; }
.link-status-dead { background: #DB4437; }

/* RSS 聚合区域 */
.rss-box {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    max-width: 100%;
    overflow: hidden;
}
.rss-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.rss-box-title {
    margin: 0;
    color: #166534;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 1.1em;
}
.rss-box-title i { color: #16a34a; }
.rss-refresh-btn {
    font-size: 0.85em;
    color: #16a34a;
    cursor: pointer;
    background: none;
    border: none;
}
.rss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 12px;
}
.rss-item {
    background: #fff;
    border: 1px solid #dcfce7;
    border-radius: 6px;
    padding: 14px;
    transition: box-shadow 0.2s;
}
.rss-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.rss-item-site {
    font-size: 0.8em;
    color: #16a34a;
    margin-bottom: 4px;
}
.rss-item-site a {
    color: #16a34a;
    font-weight: 600;
}
.rss-item-title {
    margin: 0 0 6px 0;
    font-size: 0.95em;
    font-weight: 500;
    word-break: break-word;
}
.rss-item-title a { color: #212121; }
.rss-item-date {
    color: #9e9e9e;
    font-size: 0.8em;
}
.rss-loading, .rss-error, .rss-empty {
    text-align: center;
    padding: 20px;
}
.rss-loading p, .rss-error p, .rss-empty p { margin: 0; }
.rss-loading { color: #166534; }
.rss-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}
.rss-empty { color: #166534; }

/* 本站信息模块 */
.site-info-box {
    background: #E3F2FD;
    border: 1px solid #90CAF9;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 20px;
    max-width: 100%;
    overflow: hidden;
}
.site-info-box h3 {
    margin: 0 0 8px 0;
    color: #1565C0;
    border-bottom: none;
    padding-bottom: 0;
}
.site-info-box > p {
    margin: 4px 0;
    color: #424242;
    font-size: 0.9em;
}
.site-info-table {
    background: #FFFFFF;
    border: 1px solid #BBDEFB;
    border-radius: 4px;
    padding: 12px;
    margin-top: 8px;
}
.site-info-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}
.site-info-table td {
    padding: 6px 8px;
    color: #757575;
    white-space: nowrap;
    width: 80px;
}
.site-info-table td:last-child {
    color: #212121;
    font-weight: 500;
    word-break: break-all;
    white-space: normal;
    width: auto;
}
.site-info-table a { color: #1565C0; }
.site-info-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.site-info-copy-btn {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    font-size: 0.85em;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}
.site-info-copy-feedback {
    display: none;
    color: #4CAF50;
    font-size: 0.85em;
    line-height: 36px;
}

/* 友链申请表单 */
.link-form-section {
    margin-top: 20px;
}
.link-form-section h3 { margin-bottom: 8px; }
.link-form-note {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 12px;
}
.link-form-section label {
    display: block;
    margin: 10px 0 4px;
    font-weight: 500;
    color: var(--text);
}
.link-form-section input[type="text"],
.link-form-section input[type="email"],
.link-form-section textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: border-color 0.15s;
}
.link-form-section input:focus,
.link-form-section textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}
.link-form-captcha {
    display: flex;
    align-items: center;
    gap: 8px;
}
.link-form-captcha input { width: 140px !important; margin-bottom: 0; }
.link-form-captcha img {
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.link-form-submit {
    margin-top: 15px;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.15s;
}
.link-form-submit:hover { background: var(--primary-hover); }
