.age-verify-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.age-verify-container {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.age-verify-header {
    margin-bottom: 25px;
}

.age-verify-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #fff;
}

.age-verify-icon svg {
    width: 30px;
    height: 30px;
}

.age-verify-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.age-verify-header p {
    font-size: 14px;
    color: #666;
}

.warning-text {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    padding: 15px;
    background: #fff3f3;
    border-radius: 10px;
    border-left: 4px solid #ff6b6b;
    text-align: left;
}

.age-verify-form {
    margin-top: 25px;
}

.age-verify-form .form-group {
    margin-bottom: 15px;
}

.verify-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 15px;
    color: #1a1a2e;
    background: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.verify-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.verify-input::placeholder {
    color: #999;
}

.verify-btn {
    width: 100%;
    margin-top: 10px;
}

.age-verify-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-primary, .btn-secondary {
    flex: 1;
    height: 50px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #e8e8e8;
}

.btn-secondary:hover {
    background: #eee;
    border-color: #d0d0d0;
}

.btn-icon {
    font-size: 18px;
}

.age-verify-footer {
    margin-top: 20px;
}

.policy-link {
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
}

.policy-link:hover {
    text-decoration: underline;
}

.teen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.teen-container {
    border-radius: 20px;
    padding: 35px;
    width: 90%;
    max-width: 360px;
    text-align: center;
    animation: fadeInUp 0.3s ease;
}

.teen-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
}

.teen-icon svg {
    width: 35px;
    height: 35px;
}

.teen-container h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.teen-container p {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.teen-features {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature-item svg {
    width: 28px;
    height: 28px;
    color: #667eea;
}

.feature-item span {
    font-size: 12px;
    color: #888;
}

.teen-close-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.teen-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.teen-mode-active .adult-content {
    position: relative;
    overflow: hidden;
}

.teen-mode-active .adult-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
}

.teen-mode-active .adult-content::after {
    content: '青少年模式已开启';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: #999;
    z-index: 11;
}

.teen-mode-active .manga-list-2-cover-hover {
    background: rgba(0, 0, 0, 0.3);
}

.teen-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 10px;
}

.teen-badge svg {
    width: 14px;
    height: 14px;
}

/* ===== 时间锁覆盖层 ===== */
.time-lock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.time-lock-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 40px 30px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.4s ease;
}

.time-lock-icon {
    font-size: 64px;
    margin-bottom: 15px;
    line-height: 1;
}

.time-lock-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.time-lock-msg {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 3px solid #f5576c;
}

.guardian-section {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.guardian-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
}

.guardian-input:focus {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
}

.guardian-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.guardian-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.guardian-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.time-lock-tip {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
}

.time-remaining-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(245, 87, 108, 0.1);
    border-radius: 20px;
    font-size: 14px;
    color: #f5576c;
    margin-top: 10px;
}

.time-remaining-display .clock-icon {
    width: 16px;
    height: 16px;
}

#time-remaining {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.teen-protect-page {
    padding: 72px 20px 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

.teen-page-header {
    text-align: center;
    padding: 30px 0;
}

.teen-page-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
}

.teen-page-icon svg {
    width: 40px;
    height: 40px;
}

.teen-page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.teen-page-header p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.teen-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.teen-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.teen-card-title svg {
    width: 20px;
    height: 20px;
    color: #667eea;
}

.teen-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.teen-toggle-label {
    font-size: 15px;
    color: #333;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.teen-password-section {
    margin-top: 20px;
}

.teen-password-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    display: block;
}

.teen-password-input {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.teen-password-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.teen-password-hint {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.teen-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.teen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.teen-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.teen-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.teen-feature-item {
    flex: 1;
    min-width: calc(50% - 5px);
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.teen-feature-item svg {
    width: 32px;
    height: 32px;
    color: #667eea;
    margin-bottom: 10px;
}

.teen-feature-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.teen-feature-item p {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.teen-time-limit {
    padding: 15px;
    background: #fff3e6;
    border-radius: 12px;
    border-left: 4px solid #ff9800;
}

.teen-time-limit svg {
    width: 18px;
    height: 18px;
    color: #ff9800;
    margin-right: 8px;
}

.teen-time-limit p {
    font-size: 14px;
    color: #e65100;
    line-height: 1.6;
}

.teen-policy-section {
    margin-top: 30px;
}

.teen-policy-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.teen-policy-list {
    list-style: none;
    padding: 0;
}

.teen-policy-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.teen-policy-list li:last-child {
    border-bottom: none;
}

.teen-policy-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

@media (max-width: 480px) {
    .age-verify-container {
        padding: 20px;
        border-radius: 16px;
    }
    
    .age-verify-header h2 {
        font-size: 20px;
    }
    
    .btn-primary, .btn-secondary {
        height: 45px;
        font-size: 14px;
    }
    
    .teen-features {
        flex-wrap: wrap;
    }
    
    .feature-item {
        flex: 1;
        min-width: calc(33% - 10px);
    }
}