/* ============================================================ */
/* StarNexus 全局公共样式（由 common/global.css + 页眉页脚样式合并生成） */
/* ============================================================ */

/* common/global.css - 智链星出版社全局样式（基础变量、按钮、表单、卡片等） */

/* ========== CSS 变量（与页眉页脚保持一致） ========== */
:root {
    /* 主色调 */
    --primary-dark: #4A3A6B;
    --primary-mid: #6C5F7B;
    --primary-light: #E0D9F0;
    --accent-gold: #D4AF37;
    --accent-teal: #14B8A6;
    --accent-purple: #8B5CF6;
    
    /* 背景色 */
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-warm: #FAF7F2;
    --bg-gray: #F1F5F9;
    
    /* 文字色 */
    --text-title: #1E293B;
    --text-body: #475569;
    --text-muted: #94A3B8;
    
    /* 边框色 */
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    
    /* 字体 */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-heading: 'Poppins', var(--font-sans);
    
    /* 圆角 */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    
    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-body);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-title);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-gold);
}

/* ========== 容器 ========== */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent-gold);
    color: white;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
}

.btn-outline:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ========== 卡片 ========== */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}

/* ========== 表单 ========== */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--bg-white);
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.input-field::placeholder {
    color: var(--text-muted);
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--text-title);
}

.form-group {
    margin-bottom: 1rem;
}

/* 选择框 */
select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
}

/* 文本域 */
textarea.input-field {
    resize: vertical;
    min-height: 100px;
}

/* 复选框和单选框 */
.checkbox-label, .radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

/* ========== 表格 ========== */
.table-wrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: var(--bg-gray);
    font-weight: 600;
    color: var(--text-title);
    border-bottom: 1px solid var(--border-light);
}

.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.table tr:hover {
    background: var(--bg-gray);
}

/* ========== 徽章 ========== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-pending {
    background: #FEF3C7;
    color: #D97706;
}

.badge-approved {
    background: #D1FAE5;
    color: #059669;
}

.badge-rejected {
    background: #FEE2E2;
    color: #DC2626;
}

.badge-gold {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* ========== 分割线 ========== */
.divider {
    border-top: 1px solid var(--border-light);
    margin: 1rem 0;
}

/* ========== 工具类 ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.hidden { display: none; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    .card {
        padding: 1rem;
    }
}

/* ============================================================ */
/* 页眉 & 页脚样式（来自 common:header-footer.html） */
/* ============================================================ */

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        :root {
            --primary-dark: #4A3A6B;
            --primary-mid: #6C5F7B;
            --primary-light: #E0D9F0;
            --accent-gold: #D4AF37;
            --white: #FFFFFF;
            --gray-100: #F3F4F6;
            --gray-200: #E5E7EB;
            --text-dark: #2D3748;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background: #F8F9FC;
            color: #1F2937;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
        /* 页眉容器 */
        .site-header {
            background-color: var(--primary-dark);
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        }
        /* 顶部栏 */
        .top-bar {
            max-width: 1440px;
            margin: 0 auto;
            padding: 0 32px;
            height: 48px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        .logo-area {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
        }
        .logo-icon {
            width: 32px;
            height: 32px;
            background: var(--white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        .logo-icon::after {
            content: '';
            width: 12px;
            height: 12px;
            background: var(--primary-dark);
            border-radius: 50%;
        }
        .logo-text {
            font-size: 1rem;
            font-weight: 600;
            color: var(--white);
            letter-spacing: 0.5px;
        }
        .logo-text span {
            color: var(--accent-gold);
        }
        .top-actions {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        /* 语言切换下拉（两套语言） */
        .lang-dropdown {
            position: relative;
        }
        .lang-btn {
            color: var(--white);
            font-size: 0.85rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
            background: none;
            border: none;
        }
        .lang-menu {
            position: absolute;
            top: 100%;
            right: 0;
            background: var(--white);
            border-radius: 8px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
            min-width: 100px;
            padding: 8px 0;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            z-index: 1002;
        }
        .lang-dropdown:hover .lang-menu {
            opacity: 1;
            visibility: visible;
        }
        .lang-menu a {
            display: block;
            padding: 8px 16px;
            text-decoration: none;
            color: var(--text-dark);
            font-size: 0.85rem;
            cursor: pointer;
        }
        .lang-menu a:hover {
            background: var(--primary-light);
            color: var(--primary-dark);
        }
        .top-link {
            color: var(--white);
            text-decoration: none;
            font-size: 0.85rem;
            transition: var(--transition);
        }
        .top-link:hover {
            color: var(--accent-gold);
        }
        /* 个人/机构中心下拉 */
        .user-dropdown {
            position: relative;
        }
        .user-btn {
            background-color: var(--accent-gold);
            color: var(--primary-dark);
            padding: 4px 14px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 0.85rem;
            transition: 0.2s;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .user-btn:hover {
            background-color: #f0c94d;
            transform: translateY(-1px);
        }
        .user-menu {
            position: absolute;
            top: 100%;
            right: 0;
            background: var(--white);
            border-radius: 8px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
            min-width: 140px;
            padding: 8px 0;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            z-index: 1002;
        }
        .user-dropdown:hover .user-menu {
            opacity: 1;
            visibility: visible;
        }
        .user-menu a {
            display: block;
            padding: 10px 16px;
            text-decoration: none;
            color: var(--text-dark);
            font-size: 0.85rem;
        }
        .user-menu a:hover {
            background: var(--primary-light);
            color: var(--primary-dark);
        }
        /* 主导航栏（居中对齐） */
        .main-nav {
            max-width: 1440px;
            margin: 0 auto;
            padding: 0 32px;
            height: 68px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .nav-list {
            display: flex;
            gap: 32px;
            list-style: none;
        }
        .nav-item {
            position: relative;
        }
        .nav-item > a {
            color: rgba(255, 255, 255, 0.9);
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            padding: 12px 0;
            display: inline-block;
            transition: var(--transition);
        }
        .nav-item > a:hover {
            color: var(--accent-gold);
        }
        /* 下拉菜单 */
        .dropdown-menu {
            position: absolute;
            top: 48px;
            left: 0;
            background: var(--white);
            min-width: 220px;
            border-radius: 12px;
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
            opacity: 0;
            visibility: hidden;
            transition: all 0.25s ease;
            transform: translateY(10px);
            z-index: 1001;
            padding: 8px 0;
            border-top: 3px solid var(--accent-gold);
        }
        .nav-item:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .dropdown-menu li {
            list-style: none;
            position: relative;
        }
        .dropdown-menu a {
            display: block;
            padding: 10px 20px;
            color: var(--text-dark);
            text-decoration: none;
            font-size: 0.85rem;
            transition: background 0.2s;
        }
        .dropdown-menu a:hover {
            background: var(--primary-light);
            color: var(--primary-dark);
        }
        /* 三级菜单 */
        .submenu {
            position: absolute;
            top: 0;
            left: 100%;
            background: var(--white);
            min-width: 200px;
            border-radius: 12px;
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
            transform: translateX(8px);
            padding: 8px 0;
            border-top: 3px solid var(--accent-gold);
        }
        .dropdown-menu li:hover > .submenu {
            opacity: 1;
            visibility: visible;
            transform: translateX(0);
        }
        .has-submenu > a::after {
            content: "›";
            float: right;
            margin-left: 12px;
            font-size: 1.1rem;
        }
        /* 移动端按钮 */
        .mobile-toggle {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            width: 30px;
            height: 30px;
            position: relative;
            z-index: 1010;
        }
        .mobile-toggle span {
            display: block;
            width: 24px;
            height: 2px;
            background-color: var(--white);
            margin: 5px 0;
            transition: 0.3s;
        }
        /* 移动端侧边栏 */
        .mobile-sidebar {
            position: fixed;
            top: 0;
            left: -100%;
            width: 85%;
            max-width: 320px;
            height: 100%;
            background-color: var(--primary-dark);
            z-index: 2000;
            transition: left 0.3s ease;
            overflow-y: auto;
            padding: 20px;
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
        }
        .mobile-sidebar.open {
            left: 0;
        }
        .sidebar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        }
        .close-sidebar {
            background: none;
            border: none;
            color: white;
            font-size: 28px;
            cursor: pointer;
        }
        .mobile-actions {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 24px;
        }
        .mobile-actions a {
            color: white;
            text-decoration: none;
            background: rgba(255,255,255,0.1);
            padding: 8px 12px;
            border-radius: 8px;
            text-align: center;
        }
        .mobile-user {
            background: var(--accent-gold);
            color: var(--primary-dark) !important;
            font-weight: bold;
        }
        .mobile-lang {
            display: flex;
            justify-content: space-around;
            gap: 10px;
        }
        .mobile-lang a {
            flex: 1;
            text-align: center;
            color: white;
            text-decoration: none;
            background: rgba(255,255,255,0.2);
            border-radius: 8px;
            padding: 6px;
        }
        .mobile-nav-list {
            list-style: none;
        }
        .mobile-nav-item {
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .mobile-nav-link {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 0;
            color: white;
            text-decoration: none;
            font-size: 1rem;
            cursor: pointer;
        }
        .mobile-submenu {
            padding-left: 16px;
            display: none;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 12px;
        }
        .mobile-submenu.open {
            display: flex;
        }
        .mobile-submenu a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            font-size: 0.85rem;
            padding: 6px 0;
        }
        .chevron {
            transition: transform 0.3s;
        }
        .chevron.rotated {
            transform: rotate(180deg);
        }
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1999;
            display: none;
        }
        .overlay.active {
            display: block;
        }
        @media (max-width: 1024px) {
            .main-nav {
                display: none;
            }
            .mobile-toggle {
                display: block;
            }
            .top-actions .top-link:not(.user-btn) {
                display: none;
            }
            .top-actions .user-dropdown {
                display: none;
            }
            .lang-dropdown {
                display: none;
            }
        }

        /* ========== 页脚样式 ========== */
        .site-footer {
            background-color: var(--primary-dark);
            color: rgba(255, 255, 255, 0.8);
            padding: 48px 0 24px;
            margin-top: 60px;
            font-size: 0.85rem;
        }
        .footer-container {
            max-width: 1440px;
            margin: 0 auto;
            padding: 0 32px;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 40px;
            margin-bottom: 40px;
        }
        .footer-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 16px;
        }
        .footer-logo-text {
            font-weight: 600;
            color: var(--white);
            font-size: 1rem;
        }
        .footer-logo-text span {
            color: var(--accent-gold);
        }
        .footer-desc {
            line-height: 1.6;
            opacity: 0.8;
            margin-top: 8px;
        }
        .footer-cert {
            display: flex;
            gap: 12px;
            margin-top: 16px;
        }
        .cert-badge {
            background: rgba(255, 255, 255, 0.15);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 500;
        }
        .footer-title {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 20px;
            color: var(--accent-gold);
            position: relative;
            display: inline-block;
        }
        .footer-links, .footer-contact {
            list-style: none;
            padding: 0;
        }
        .footer-links li, .footer-contact li {
            margin-bottom: 12px;
        }
        .footer-links a, .footer-contact a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: color 0.2s;
        }
        .footer-links a:hover, .footer-contact a:hover {
            color: var(--accent-gold);
        }
        .footer-contact i {
            width: 24px;
            color: var(--accent-gold);
            margin-right: 8px;
        }
        .footer-social {
            display: flex;
            gap: 16px;
            margin-bottom: 24px;
        }
        .footer-social a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: var(--white);
            text-decoration: none;
            transition: all 0.2s;
        }
        .footer-social a:hover {
            background: var(--accent-gold);
            color: var(--primary-dark);
            transform: translateY(-2px);
        }
        .footer-legal {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }
        .footer-legal a {
            color: rgba(255, 255, 255, 0.5);
            text-decoration: none;
            font-size: 0.75rem;
        }
        .footer-legal a:hover {
            color: var(--accent-gold);
        }
        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.15);
            padding-top: 24px;
            text-align: center;
            font-size: 0.75rem;
            opacity: 0.6;
        }
        @media (max-width: 900px) {
            .footer-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 32px;
            }
        }
        @media (max-width: 600px) {
            .footer-grid {
                grid-template-columns: 1fr;
                text-align: center;
            }
            .footer-logo {
                justify-content: center;
            }
            .footer-cert {
                justify-content: center;
            }
            .footer-social {
                justify-content: center;
            }
            .footer-legal {
                justify-content: center;
            }
        }

        /* 页面主要内容占位（仅用于演示，实际使用时替换） */
        .main-content {
            flex: 1;
            max-width: 1200px;
            margin: 40px auto;
            padding: 40px;
            background: white;
            border-radius: 24px;
            text-align: center;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }

/* ============================================================ */
/* 保留的兼容性样式（旧版中存在，新版未覆盖） */
/* ============================================================ */

.wechat-qrcode {
    display: none;
    position: absolute;
    top: 50%;
    left: calc(50% + 12px);
    transform: translateY(-50%);
    background: var(--white);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

/* 微信二维码定位需要 */
.footer-social {
    position: relative;
}

/* ============================================================ */
/* 品牌站 Keycloak 登录按钮（snx-login-btn） */
/* ============================================================ */

.snx-login-btn {
    background: var(--primary-dark, #4A3A6B);
    color: #fff !important;
    border: 2px solid var(--accent-gold, #D4AF37);
    padding: 8px 22px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border-radius: 999px;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    white-space: nowrap;
}
.snx-login-btn:hover {
    background: var(--accent-gold, #D4AF37) !important;
    color: var(--text-dark, #2D2A3A) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   Editorial Verify (/editorial/verify) — 权威工具风格视觉重构  |  CSS ONLY
   参考：Springer Nature / Elsevier / certify.page 证书验证页规范
   目标：平静、直接、官方权威感；只改样式，不动 HTML / 模板 / 页眉页脚
   --------------------------------------------------------------------------
   【真实 DOM —— 与初稿假设不同，这是本版重写选择器的依据】

   .verify-container
     └ .search-card
         ├ .card-header  → h1 + p            （原本是深紫渐变 + 白字）
         └ .card-body
             ├ .search-tabs > .tab × 5       （div，不是 <select>）
             ├ .input-group > label + input[type="text"]
             └ button.btn-search             （无 type 属性，不是 [type="submit"]）
     ├ .result-card / .not-found-card
     └ .info-section

   ⚠ 页面没有 <form>、没有 <select>、按钮也没有 type="submit"。
     初稿中 `.verify-container form` / `form::after` / `button[type="submit"]`
     三组选择器在真实 DOM 上均为死规则，故本版以 .search-card / .card-body
     作为卡片载体，以 .card-body::after 承载官方声明。
   ⚠ 原 .card-header 是 #4A3A6B→#2c2345 深紫渐变。若保留深紫底而把
     h1 改成 #1F2937，对比度仅约 1.6:1（WCAG AA 要求 4.5:1），标题会不可读。
     故卡头一并改为白底，这也更符合“白卡片 + 深色衬线标题”的既定意图。
   --------------------------------------------------------------------------
   作用域：全部选择器均以 .verify-container 前缀收敛，不波及其它页面。
   ========================================================================== */

/* ---- 1. 版心：900px 收为 560px 的工具型窄栏 ---- */
.verify-container {
    max-width: 560px !important;
    margin: 56px auto 72px !important;
    padding: 0 20px !important;
}

/* ---- 2. 核心白卡片：圆角 + 细边 + 柔和阴影 ---- */
.verify-container .search-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 0 !important;
    overflow: visible !important;      /* 避免裁掉输入框的聚焦光环 */
}

/* ---- 3. 卡头：素净白底，保证深灰衬线标题可读 ---- */
.verify-container .card-header {
    background: #FFFFFF !important;
    color: #1F2937 !important;
    padding: 40px 40px 0 !important;
    text-align: center !important;
}

.verify-container .card-header h1 {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: #1F2937 !important;
    text-align: center !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
    margin: 0 0 0.5rem !important;
}

.verify-container .card-header p {
    color: #6B7280 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
    opacity: 1 !important;
    margin: 0 0 2.5rem !important;
}

/* ---- 4. 卡体 ---- */
.verify-container .card-body {
    padding: 0 40px 40px !important;
}

/* 5 个分类 tab 收为单行 5 等分的分段导航（保留原交互，不动 HTML）
   版心由 900px 收窄到 560px 后，原 flex 会折成 2/2/1 三行、分隔线悬空，
   故改 grid；5 个证书类型始终全部可见，不藏进横向滚动 */
.verify-container .search-tabs {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 0 !important;
    border-bottom: 1px solid #E5E7EB !important;
    padding-bottom: 0 !important;
    margin-bottom: 28px !important;
}
.verify-container .search-tabs .tab {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #6B7280 !important;
    line-height: 1.45 !important;
    text-align: center !important;
    white-space: normal !important;
    padding: 0 6px 12px !important;
    margin: 0 !important;
    border-bottom: 2px solid transparent !important;
    letter-spacing: 0 !important;
}
.verify-container .search-tabs .tab:hover,
.verify-container .search-tabs .tab.active {
    color: #4A3A6B !important;
}
.verify-container .search-tabs .tab.active {
    border-bottom-color: #4A3A6B !important;
}
/* 收掉与「官方工具感」相冲的装饰 emoji：HTML 不可改，借 ::first-letter
   把首字符缩为 0 并 float 出流，避免残留空行把最后一列文字顶下去。
   仅影响视觉，data-type 与 switchTab() 交互完全不变。 */
.verify-container .search-tabs .tab::first-letter {
    float: left !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
}

/* ---- 5. 标签：小号大写，强化结构感 ---- */
.verify-container .input-group {
    margin-bottom: 20px !important;
}
.verify-container .input-group label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #4A3A6B !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
}

/* ---- 6. 输入框与聚焦反馈 ---- */
.verify-container .input-group input[type="text"] {
    width: 100% !important;
    height: 48px !important;
    padding: 0 16px !important;
    border: 2px solid #E5E7EB !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    color: #1F2937 !important;
    background: #F9FAFB !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
}
.verify-container .input-group input[type="text"]:focus {
    border-color: #4A3A6B !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 4px rgba(74, 58, 107, 0.10) !important;
    outline: none !important;
}
.verify-container .input-group input[type="text"]::placeholder {
    color: #9CA3AF !important;
    opacity: 1 !important;
}

/* ---- 7. 主按钮：品牌紫，强行动召唤 ---- */
.verify-container .card-body .btn-search {
    width: 100% !important;
    height: 48px !important;
    padding: 0 20px !important;
    background: #4A3A6B !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    cursor: pointer !important;
    margin-top: 8px !important;
    transition: background-color 0.2s ease, color 0.2s ease,
                transform 0.2s ease, box-shadow 0.2s ease !important;
}
.verify-container .card-body .btn-search:hover {
    background: #D4AF37 !important;
    color: #1F2937 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3) !important;
}
.verify-container .card-body .btn-search:focus-visible {
    outline: 3px solid rgba(74, 58, 107, 0.45) !important;
    outline-offset: 3px !important;
}

/* ---- 8. 官方验证声明（真实 DOM 无 <form>，挂在 .card-body::after） ---- */
.verify-container .card-body::after {
    content: "This verification portal is operated by StarNexus Science Press (Hong Kong, China). All certificate data is securely validated against our official records.";
    display: block;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #F3F4F6;
    font-size: 12px;
    line-height: 1.6;
    color: #6B7280;   /* 由初稿 #9CA3AF 上调：白底对比度 4.8:1，满足 WCAG AA */
    text-align: center;
    text-wrap: balance;   /* 两行断字均衡，避免 “(Hong Kong, / China)” 这类割裂 */
}

/* ---- 9. 下方卡片统一到 16px 圆角体系（不触碰 display，结果卡默认仍隐藏） ---- */
.verify-container .info-section,
.verify-container .not-found-card,
.verify-container .result-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
}
.verify-container .info-section {
    margin-top: 20px !important;
    padding: 24px 28px !important;
}
.verify-container .info-section h3 {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 1.125rem !important;
    color: #1F2937 !important;
}
.verify-container .cert-example {
    background: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    color: #4B5563 !important;
}

/* ---- 10. 响应式：窄屏减内边距，避免 40px padding 挤压输入区 ---- */
@media (max-width: 640px) {
    .verify-container {
        margin: 28px auto 48px !important;
        padding: 0 16px !important;
    }
    .verify-container .card-header { padding: 28px 24px 0 !important; }
    .verify-container .card-header h1 { font-size: 1.7rem !important; }
    .verify-container .card-body { padding: 0 24px 28px !important; }
    .verify-container .info-section { padding: 20px !important; }
}

/* 极窄屏（≤480px）：5 等分会把 “Certificate” 挤成碎行，退为 3 列两排 */
@media (max-width: 480px) {
    .verify-container .search-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        row-gap: 8px !important;
    }
}

/* ---- 11. 无障碍：尊重「减少动态效果」偏好 ---- */
@media (prefers-reduced-motion: reduce) {
    .verify-container .card-body .btn-search,
    .verify-container .input-group input[type="text"] {
        transition: none !important;
    }
    .verify-container .card-body .btn-search:hover {
        transform: none !important;
    }
}


/* ============================================================ */
/* [SNX-OS-HERO-V1] Nexus Scholar Platform 宣发区块 —— 紫金卡片    */
/* 作用域完全限定在 .snx-os-hero 内，不触碰任何既有选择器          */
/* ============================================================ */
.snx-os-hero-wrap {
    padding: 0 20px;
    box-sizing: border-box;
}
.snx-os-hero {
    background: linear-gradient(135deg, #4A3A6B 0%, #2D1B4E 100%);
    color: #fff;
    padding: 64px 24px;
    border-radius: 16px;
    text-align: center;
    margin: 40px auto;
    max-width: 1100px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    box-sizing: border-box;
}
.snx-os-hero .snx-os-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #D4AF37;
    margin-bottom: 24px;
    letter-spacing: .02em;
}
.snx-os-hero h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.2rem;
    line-height: 1.35;
    margin: 0 0 16px;
    color: #fff;
    font-weight: 700;
}
.snx-os-hero .snx-os-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #D1D5DB;
    max-width: 800px;
    margin: 0 auto 40px;
}
.snx-os-hero .snx-os-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    text-align: left;
    margin-bottom: 40px;
}
.snx-os-hero .snx-os-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 24px;
    border-radius: 12px;
    box-sizing: border-box;
}
.snx-os-hero .snx-os-card h3 {
    color: #D4AF37;
    font-size: 1.1rem;
    margin: 0 0 12px;
    font-weight: 700;
    line-height: 1.45;
}
.snx-os-hero .snx-os-card p {
    font-size: 14px;
    color: #9CA3AF;
    line-height: 1.7;
    margin: 0;
}
.snx-os-hero .snx-os-footer-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}
@media (max-width: 768px) {
    .snx-os-hero { padding: 44px 18px; margin: 28px auto; border-radius: 12px; }
    .snx-os-hero h2 { font-size: 1.55rem; }
    .snx-os-hero .snx-os-desc { font-size: 1rem; margin-bottom: 28px; }
    .snx-os-hero .snx-os-features { grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; }
    .snx-os-hero .snx-os-card { padding: 18px; }
}
