/* ========================================
   common.css — 全站公共样式
   ======================================== */

/* ── 表单组件 ── */
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 8px;
}
.form-input {
    width: 100%;
    padding: 14px 16px;
    background: #0a0a0c;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}
.form-input:focus {
    border-color: var(--gold);
}
.form-input::placeholder {
    color: #737373;
}
.code-input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    font-weight: 600;
}

/* ── 提示 / 警告 ── */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}
.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

/* ── 重发链接 ── */
.resend-link {
    display: block;
    margin-top: 20px;
    color: var(--muted);
    font-size: 14px;
}
.resend-link a {
    color: var(--gold);
    text-decoration: none;
}
.resend-link a:hover {
    text-decoration: underline;
}
.resend-link button {
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    font-size: 14px;
}
.resend-link button:hover {
    text-decoration: underline;
}

/* ── 法律页面 ── */
.legal-page { background: #08080a; min-height: 100vh; padding-bottom: 60px; }
.legal-container { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.legal-header { text-align: center; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.legal-header h1 { font-family: 'Noto Serif SC', serif; font-size: 28px; color: #f5f5f5; margin-bottom: 10px; }
.legal-header p { font-size: 14px; color: #71717a; }
.legal-content { color: #a1a1aa; font-size: 15px; line-height: 1.9; }
.legal-content h2 { font-size: 18px; color: #f5f5f5; margin: 35px 0 15px; padding-left: 12px; border-left: 3px solid #d4a24c; }
.legal-content h3 { font-size: 16px; color: #d4d4d8; margin: 25px 0 12px; }
.legal-content p { margin-bottom: 15px; }
.legal-content ul { margin: 15px 0; padding-left: 20px; }
.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: #f5f5f5; }
.legal-content a { color: #00d4ff; text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-content .highlight { background: rgba(212,162,76,0.1); border: 1px solid rgba(212,162,76,0.2); border-radius: 8px; padding: 15px 20px; margin: 20px 0; }
.legal-content .highlight p { margin: 0; color: #d4a24c; }
.legal-footer { margin-top: 50px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; }
.legal-footer p { font-size: 13px; color: #71717a; }
.legal-footer a { color: #d4a24c; }

/* ── YZ-Index 公共组件 ── */
.yz-method-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 2rem 2rem 1.5rem;
    margin-bottom: 2rem;
}
.yz-method-card__title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #f0f0f0;
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.yz-method-card__title i {
    color: #a78bfa;
    font-size: 1.1rem;
}
.yz-info-table {
    width: 100%;
    border-collapse: collapse;
}
.yz-info-table th,
.yz-info-table td {
    text-align: left;
    padding: .7rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: .92rem;
    color: #ccc;
}
.yz-info-table th {
    color: #999;
    font-weight: 500;
    white-space: nowrap;
}
.yz-info-table thead th {
    color: #9ca3af;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.yz-info-table tr:last-child th,
.yz-info-table tr:last-child td {
    border-bottom: none;
}
.yz-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.yz-info-list li {
    padding: .55rem 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
    font-size: .92rem;
    color: #bbb;
    display: flex;
    align-items: baseline;
    gap: .6rem;
}
.yz-info-list li:last-child {
    border-bottom: none;
}
.yz-info-list li i {
    color: #a78bfa;
    font-size: .75rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.yz-badge-inline {
    display: inline-block;
    background: rgba(255,255,255,.07);
    border-radius: 6px;
    padding: 1px 8px;
    font-size: .82rem;
    color: #aaa;
    font-family: 'Courier New', monospace;
}
.yz-section-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 2rem 0 .5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

@media (max-width: 640px) {
    .yz-method-card { padding: 1.25rem 1rem 1rem; }
    .yz-info-table th, .yz-info-table td { padding: .5rem .6rem; font-size: .82rem; }
}
@media (max-width: 480px) {
    .yz-method-card { padding: 1rem .85rem .85rem; }
    .yz-method-card__title { font-size: 1.1rem; }
    .yz-info-table th, .yz-info-table td { padding: .5rem .6rem; font-size: .82rem; }
    .yz-info-list li { font-size: .82rem; }
}
