/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 增强蓝色系 */
    --primary-gradient: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    --primary-color: #3B82F6;
    --primary-hover: #2563EB;
    --primary-light: #60A5FA;

    /* 成功色 - 清新绿色 */
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --success-color: #11998e;
    --success-light: #2dcf8a;

    /* 错误色 - 柔和红色 */
    --error-gradient: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    --error-color: #FF6B6B;
    --error-light: #FF8E8E;

    /* 警告色 - 温暖橙色 */
    --warning-gradient: linear-gradient(135deg, #F9A825 0%, #FBC02D 100%);
    --warning-color: #F9A825;

    /* 辅助色 - 精灵主题色 */
    --accent-teal: #38B2AC;
    --accent-peach: #FFE4C4;
    --accent-gold: #FFD700;

    /* 文字颜色 */
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --text-tertiary: #718096;
    --text-white: #FFFFFF;

    /* 背景颜色 */
    --bg-primary: #F7FAFC;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #EDF2F7;
    --bg-accent: #E6FFFA;

    /* 边框颜色 */
    --border-color: #E2E8F0;
    --border-focus: #4FACFE;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(79, 172, 254, 0.08);
    --shadow-md: 0 8px 24px rgba(79, 172, 254, 0.12);
    --shadow-lg: 0 16px 48px rgba(79, 172, 254, 0.15);
    --shadow-colored: 0 8px 32px rgba(56, 178, 172, 0.2);

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* 动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== 页面包装器 ===== */
.page-wrapper {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: #2563EB;
    background-image: url('../images/background.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

/* ===== 顶部装饰背景 ===== */
.top-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 280px;
    overflow: hidden;
    z-index: 0;
}

.decoration-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: floatShape 15s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -30px;
    animation-delay: 0s;
    background: rgba(255, 255, 255, 0.15);
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 80px;
    right: 120px;
    animation-delay: 5s;
    background: rgba(255, 255, 255, 0.1);
}

.shape-3 {
    width: 120px;
    height: 120px;
    top: 20px;
    left: 50px;
    animation-delay: 10s;
    background: rgba(255, 255, 255, 0.12);
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-15px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translateY(-5px) rotate(180deg) scale(0.95);
    }
    75% {
        transform: translateY(-20px) rotate(270deg) scale(1.05);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    70% {
        opacity: 0.8;
        transform: scale(1.05) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===== 主容器 ===== */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 440px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
}

/* ===== Logo 区域 ===== */
.logo-section {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    animation: fadeIn 0.6s ease-out;
    z-index: 2;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-icon {
    width: 160px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInScale 1s ease-out;
    position: relative;
    background: transparent;
    border-radius: var(--radius-md);
    padding: 12px;
    transform-style: preserve-3d;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: calc(var(--radius-md) + 4px);
    background: transparent;
    z-index: -1;
    animation: none;
    box-shadow: none;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: none;
}

.logo-text {
    font-family: "Microsoft YaHei", "Microsoft YaHei UI", sans-serif;
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 6px;
    margin: 0;
    text-align: center;

    color: #000000;
    /*-webkit-text-stroke: 3px #FFFFFF;*/
    /*text-stroke: 3px #FFFFFF;*/

    /*text-shadow:*/
    /*        0 0 8px rgba(255, 255, 255, 0.6),*/
    /*        0 0 16px rgba(255, 255, 255, 0.4);*/

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.logo-subtitle {
    font-size: 14px;
    color: #FFFFFF;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    border-radius: var(--radius-full);
    padding: 6px 16px;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== 主要卡片 ===== */
.main-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out 0.2s both;
    margin-bottom: 24px;
    margin-top: 0;
}

.card-header {
    padding: 28px 28px 20px;
    border-bottom: 2px solid var(--bg-tertiary);
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #744210;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.card-content {
    padding: 28px;
}

/* ===== 表单样式 ===== */
.verify-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-label-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.input-hint {
    font-size: 12px;
    color: var(--text-tertiary);
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.input-container:focus-within {
    background: var(--bg-secondary);
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.15);
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-tertiary);
    pointer-events: none;
    transition: var(--transition-fast);
}

.input-container:focus-within .input-icon {
    color: var(--primary-color);
}

.form-input {
    width: 100%;
    height: 52px;
    padding: 0 52px;
    font-size: 15px;
    color: var(--text-primary);
    background: transparent;
    border: none;
    outline: none;
    font-weight: 400;
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.clear-button {
    position: absolute;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-tertiary);
    transition: var(--transition-fast);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.input-container.has-value .clear-button {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.clear-button:hover {
    background: rgba(0, 0, 0, 0.12);
    color: var(--text-secondary);
}

.error-text {
    font-size: 13px;
    color: var(--error-color);
    min-height: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-text::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="%23FF6B6B"><circle cx="8" cy="8" r="7" fill="none" stroke="currentColor" stroke-width="1.5"/><path d="M5 5l6 6M5 11l6-6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>') no-repeat center;
    background-size: contain;
}

/* 输入框错误状态 */
.input-container.error {
    border-color: var(--error-color) !important;
    background: rgba(255, 107, 107, 0.05) !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15) !important;
}

/* ===== 提交按钮 ===== */
.submit-button {
    position: relative;
    width: 100%;
    height: 54px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.5);
}

.submit-button:active:not(:disabled) {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-normal);
}

.button-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
}

.button-icon {
    color: var(--text-white);
    transition: var(--transition-normal);
}

.submit-button:hover .button-icon {
    transform: translateX(4px);
}

.button-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
    color: var(--text-white);
    font-weight: 500;
    font-size: 15px;
}

.submit-button.loading .button-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

.submit-button.loading .button-loader {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== 安全提示 ===== */
.security-tips {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tips-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-tertiary);
}

.tips-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tip-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== 页脚 ===== */
.page-footer {
    margin-top: auto;
    padding: 24px 0;
    text-align: center;
    animation: fadeIn 0.6s ease-out 0.6s both;
}

.page-footer p {
    color: #1A202C;
    font-size: 12px;
    margin-bottom: 4px;
}

.footer-contact {
    color: #4A5568;
    font-size: 11px;
}

/* ===== 结果页面 ===== */
.result-page .main-container {
    max-width: 720px;
    justify-content: center;
    padding: 60px 20px;
}

.result-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 48px 32px;
    text-align: center;
    animation: scaleIn 0.5s ease-out;
}

.result-icon-wrapper {
    margin-bottom: 24px;
}

.result-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulseSuccess 2s ease-in-out infinite;
}

.result-icon::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.15;
    animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseSuccess {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.15); opacity: 0.05; }
}

.result-icon.success {
    background: var(--success-gradient);
    box-shadow: 0 8px 24px rgba(17, 153, 142, 0.35);
}

.result-icon.error {
    background: var(--error-gradient);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.35);
}

.result-icon svg {
    width: 50px;
    height: 50px;
    color: var(--text-white);
}

.result-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.result-message {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}

.result-details {
    background: var(--bg-accent);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    text-align: left;
    border: 1px solid rgba(56, 178, 172, 0.2);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-tertiary);
    font-size: 14px;
}

.detail-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.result-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-bottom: 28px;
    color: var(--text-secondary);
    font-size: 14px;
    text-align: left;
}

.result-notice svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.result-actions {
    display: flex;
    gap: 12px;
}

.action-button {
    flex: 1;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

.action-button.primary {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.action-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 172, 254, 0.4);
}

.action-button.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.action-button.secondary:hover {
    background: #E2E8F0;
}

.action-button svg {
    width: 18px;
    height: 18px;
}

/* ===== 授权证书 ===== */
.certificate-section {
    width: min(100%, 720px);
    margin: 0 auto;
    text-align: center;
}

.certificate-loading {
    padding: 24px;
    color: #355C3B;
    font-size: 15px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(77, 122, 73, 0.24);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(21, 59, 31, 0.12);
}

.certificate-section.is-loading .certificate-intro,
.certificate-section.is-loading .certificate-preview-button,
.certificate-section.is-loading .certificate-actions {
    display: none;
}

.certificate-intro {
    margin: 0 auto 20px;
    padding: 18px 28px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 251, 240, 0.9));
    border: 1px solid rgba(77, 122, 73, 0.24);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(21, 59, 31, 0.16);
    backdrop-filter: blur(10px);
}

.certificate-kicker {
    color: #477A49;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
}

.certificate-title {
    color: #204E28;
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: 8px;
}

.certificate-state {
    color: #355C3B;
    font-size: 14px;
    margin-bottom: 0;
}

.certificate-preview-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #356B3A;
    cursor: zoom-in;
}

.certificate-preview-button img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(37, 73, 38, 0.24);
}

.certificate-preview-button span {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

.certificate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.certificate-actions .action-button {
    flex: 1 1 180px;
}

.certificate-dialog[hidden] {
    display: none;
}

.certificate-dialog {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: grid;
    place-items: center;
    padding: 20px;
}

.certificate-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 32, 19, 0.86);
}

.certificate-dialog-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 16px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.certificate-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.certificate-dialog-header h2 {
    color: #204E28;
    font-size: 18px;
}

.certificate-dialog-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #EAF2E6;
    color: #204E28;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.certificate-dialog-panel img {
    display: block;
    width: 100%;
    height: auto;
}

.certificate-preview-button:focus-visible,
.certificate-dialog-close:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

body.certificate-dialog-open {
    overflow: hidden;
}

/* ===== 自动跳转提示 ===== */
.auto-redirect {
    margin-top: 24px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
    border-radius: var(--radius-full);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.6s ease-out 0.3s both;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.auto-redirect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    width: var(--timer-progress, 100%);
    transition: width 1s linear;
}

.redirect-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 16px;
}

.redirect-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.redirect-timer svg {
    color: var(--primary-color);
}

.timer-text {
    font-weight: 500;
}

.timer-number {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
    font-family: 'Courier New', monospace;
}

.cancel-redirect {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 16px;
    transition: var(--transition-fast);
    border-radius: var(--radius-full);
}

.cancel-redirect:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* ===== 动画 ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== 响应式 ===== */
@media (max-width: 480px) {
    .main-container {
        padding: 16px;
    }

    .logo-section {
        margin-bottom: 16px;
    }

    .logo-icon {
        width: 100px;
        height: 88px;
        padding: 10px;
    }

    .logo-text {
        font-size: 22px;
    }

    .logo-subtitle {
        font-size: 12px;
        padding: 5px 14px;
    }

    .logo-container {
        gap: 12px;
    }

    .main-card {
        margin-top: 0;
    }

    .card-header,
    .card-content {
        padding: 24px 20px;
    }

    .result-card {
        padding: 36px 24px;
    }

    .result-title {
        font-size: 22px;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-page .main-container {
        padding: 32px 16px;
    }

    .certificate-actions {
        flex-direction: column;
    }

    .certificate-actions .action-button {
        width: 100%;
        flex: 0 0 auto;
    }

    .action-button {
        width: 100%;
    }

    .redirect-info {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
        text-align: left;
    }

    .auto-redirect {
        width: 100%;
        margin-top: 16px;
        padding: 10px 14px;
        border-radius: 16px;
    }

    .redirect-timer {
        min-width: 0;
        gap: 6px;
        font-size: 13px;
    }

    .timer-text {
        white-space: nowrap;
    }

    .timer-number {
        font-size: 17px;
    }

    .cancel-redirect {
        flex-shrink: 0;
        padding: 5px 8px;
        font-size: 13px;
    }

    .security-tips {
        padding: 16px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .certificate-preview-button,
    .certificate-dialog-panel {
        transition: none;
    }
}

/* ===== 管理页面样式 ===== */
.add-user-form {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--bg-tertiary);
}

.form-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.user-list-section {
    margin-top: 24px;
}

.table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: var(--text-primary);
}

.user-table thead {
    background: var(--bg-tertiary);
}

.user-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.user-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.user-table tbody tr:hover {
    background: rgba(56, 178, 172, 0.05);
}

.user-table tbody tr:last-child td {
    border-bottom: none;
}

.loading-text,
.empty-text,
.error-text {
    text-align: center;
    padding: 40px !important;
    color: var(--text-tertiary);
    font-size: 14px;
}

.error-text {
    color: var(--error-color);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-normal {
    background: rgba(17, 153, 142, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(17, 153, 142, 0.3);
}

.status-disabled {
    background: rgba(255, 107, 107, 0.15);
    color: var(--error-color);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.action-btn {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    margin-right: 6px;
}

.delete-btn {
    background: rgba(255, 107, 107, 0.15);
    color: var(--error-color);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.delete-btn:hover {
    background: rgba(255, 107, 107, 0.25);
}

.toggle-btn {
    background: rgba(79, 172, 254, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(79, 172, 254, 0.3);
}

.toggle-btn:hover {
    background: rgba(79, 172, 254, 0.25);
}

@media (max-width: 480px) {
    .user-table {
        font-size: 12px;
    }

    .user-table th,
    .user-table td {
        padding: 10px 12px;
    }

    .action-btn {
        padding: 4px 8px;
        font-size: 11px;
        margin-right: 4px;
    }

    .form-title {
        font-size: 16px;
    }
}
