* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #334155;
    background: #f8fafc;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* 顶部导航 */
.header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}
.logo-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #facc15, #eab308);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #0f172a;
    font-size: 12px;
    font-family: serif;
    box-shadow: 0 0 0 3px rgba(250,204,21,0.2);
}
.logo-text h1 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
    font-family: "Noto Serif SC", "SimSun", serif;
}
.logo-text p {
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav a {
    padding: 8px 16px;
    font-size: 15px;
    color: #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s;
}
.nav a:hover, .nav a.active {
    background: rgba(250,204,21,0.15);
    color: #facc15;
}

.lang-switch {
    margin-left: 20px;
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    overflow: hidden;
}
.lang-switch button {
    background: none;
    border: none;
    color: #94a3b8;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.lang-switch button.active {
    background: #facc15;
    color: #0f172a;
    font-weight: 600;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Hero 区域 */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
    color: #fff;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(250,204,21,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(59,130,246,0.2) 0%, transparent 50%);
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}
.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(250,204,21,0.15);
    border: 1px solid rgba(250,204,21,0.3);
    border-radius: 20px;
    color: #facc15;
    font-size: 13px;
    margin-bottom: 24px;
}
.hero h2 {
    font-size: 42px;
    font-family: "Noto Serif SC", "SimSun", serif;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #facc15 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-en {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 28px;
    letter-spacing: 1px;
}
.hero-desc {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto 36px;
    line-height: 1.8;
}
.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-primary {
    background: linear-gradient(135deg, #facc15, #eab308);
    color: #0f172a;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250,204,21,0.4);
}
.btn-outline {
    background: transparent;
    color: #facc15;
    border: 1px solid #facc15;
}
.btn-outline:hover {
    background: rgba(250,204,21,0.1);
}

/* 通用区块 */
.section {
    padding: 70px 20px;
}
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h3 {
    font-size: 30px;
    color: #0f172a;
    font-family: "Noto Serif SC", "SimSun", serif;
    margin-bottom: 12px;
}
.section-title p {
    color: #64748b;
    font-size: 15px;
}
.section-title .line {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #facc15, #eab308);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* 数据统计 */
.stats {
    background: #fff;
    padding: 60px 20px;
}
.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-item .num {
    font-size: 42px;
    font-weight: 700;
    color: #1e3a8a;
    font-family: "Noto Serif SC", serif;
}
.stat-item .num .gold {
    color: #eab308;
}
.stat-item .label {
    font-size: 14px;
    color: #64748b;
    margin-top: 8px;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-top: 3px solid #eab308;
    transition: all 0.3s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}
.card h4 {
    font-size: 18px;
    color: #0f172a;
    margin-bottom: 10px;
}
.card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

/* 服务列表（2列） */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.service-item {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s;
}
.service-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #facc15;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}
.service-content h4 {
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 6px;
}
.service-content p {
    font-size: 13px;
    color: #64748b;
}

/* CTA 区块 */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}
.cta-section h3 {
    font-size: 28px;
    margin-bottom: 12px;
    font-family: "Noto Serif SC", serif;
}
.cta-section p {
    color: #94a3b8;
    margin-bottom: 24px;
}

/* 页脚 */
.footer {
    background: #020617;
    color: #94a3b8;
    padding: 50px 20px 20px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h5 {
    color: #e2e8f0;
    font-size: 15px;
    margin-bottom: 16px;
}
.footer-col ul li {
    margin-bottom: 10px;
    font-size: 14px;
}
.footer-col ul li a:hover {
    color: #facc15;
}
.footer-about {
    font-size: 14px;
    line-height: 1.8;
}
.footer-about .logo-text h1 {
    color: #fff;
    font-size: 17px;
}
.footer-about .logo-text p {
    font-size: 10px;
}
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* 查询页面 */
.query-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}
.query-form {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-top: 4px solid #eab308;
}
.query-form h2 {
    text-align: center;
    color: #0f172a;
    margin-bottom: 8px;
    font-size: 24px;
}
.query-form .subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 30px;
    font-size: 14px;
}
.query-type {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.query-type label {
    flex: 1;
    text-align: center;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.query-type input { display: none; }
.query-type input:checked + span {
    color: #1e3a8a;
    font-weight: 600;
}
.query-type label:has(input:checked) {
    border-color: #eab308;
    background: #fefce8;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: #eab308;
    box-shadow: 0 0 0 3px rgba(234,179,8,0.1);
}
.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* 查询结果 */
.query-result {
    margin-top: 30px;
}
.result-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #10b981;
    margin-bottom: 16px;
}
.result-card.expired { border-left-color: #f59e0b; }
.result-card.revoked { border-left-color: #ef4444; }

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.status-valid { background: #dcfce7; color: #166534; }
.status-expired { background: #fef3c7; color: #92400e; }
.status-revoked { background: #fee2e2; color: #991b1b; }

.result-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 16px;
}
.info-item label {
    font-size: 12px;
    color: #64748b;
    display: block;
    margin-bottom: 4px;
}
.info-item .value {
    font-size: 15px;
    color: #0f172a;
    font-weight: 500;
}
.result-image {
    margin-top: 16px;
    text-align: center;
}
.result-image img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.no-result {
    text-align: center;
    padding: 50px 20px;
    color: #64748b;
}
.no-result .icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* 关于我们页面 */
.page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}
.page-hero h2 {
    font-size: 36px;
    font-family: "Noto Serif SC", serif;
    margin-bottom: 8px;
}
.page-hero p {
    color: #94a3b8;
}

.about-intro {
    background: #fff;
    padding: 60px 20px;
}
.about-intro-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-intro h3 {
    font-size: 28px;
    color: #0f172a;
    margin-bottom: 16px;
    font-family: "Noto Serif SC", serif;
}
.about-intro p {
    color: #475569;
    margin-bottom: 14px;
    line-height: 1.9;
}
.deco-box {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 12px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #facc15;
    font-size: 20px;
    font-family: "Noto Serif SC", serif;
    text-align: center;
    line-height: 2;
    box-shadow: 0 20px 40px rgba(30,58,138,0.2);
}

/* 联系页面 */
.contact-info {
    background: #fff;
    padding: 60px 20px;
}
.contact-card {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    border-radius: 16px;
    padding: 40px;
}
.contact-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    font-family: "Noto Serif SC", serif;
}
.contact-list {
    display: grid;
    gap: 18px;
}
.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(250,204,21,0.15);
    color: #facc15;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-item-text h4 {
    font-size: 15px;
    color: #facc15;
    margin-bottom: 4px;
}
.contact-item-text p {
    color: #e2e8f0;
    font-size: 14px;
}

.faq-section {
    padding: 60px 20px;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.faq-q {
    padding: 18px 20px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-a {
    padding: 0 20px 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
    display: none;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { color: #1e3a8a; }

/* 后台样式 */
.admin-login {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.admin-login-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.admin-login-box h2 {
    text-align: center;
    color: #0f172a;
    margin-bottom: 6px;
}
.admin-login-box .sub {
    text-align: center;
    color: #64748b;
    margin-bottom: 28px;
    font-size: 13px;
}
.alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }

.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 220px;
    background: #0f172a;
    color: #fff;
    flex-shrink: 0;
}
.admin-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #1e293b;
    text-align: center;
}
.admin-sidebar-header h3 {
    font-size: 16px;
    margin-bottom: 4px;
}
.admin-sidebar-header p {
    font-size: 11px;
    color: #64748b;
}
.admin-menu {
    padding: 16px 0;
}
.admin-menu a {
    display: block;
    padding: 12px 20px;
    color: #94a3b8;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}
.admin-menu a:hover, .admin-menu a.active {
    background: rgba(250,204,21,0.08);
    color: #facc15;
    border-left-color: #facc15;
}
.admin-main {
    flex: 1;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
}
.admin-topbar {
    background: #fff;
    height: 60px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}
.admin-topbar h2 {
    font-size: 18px;
    color: #0f172a;
}
.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}
.admin-content {
    padding: 24px;
    flex: 1;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.dash-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.dash-card .label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}
.dash-card .num {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.admin-table-wrap {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.admin-table th {
    text-align: left;
    padding: 12px;
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}
.admin-table tr:hover {
    background: #f8fafc;
}
.admin-table .actions {
    display: flex;
    gap: 8px;
}
.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}
.btn-edit {
    background: #dbeafe;
    color: #1d4ed8;
}
.btn-delete {
    background: #fee2e2;
    color: #991b1b;
}
.btn-view {
    background: #dcfce7;
    color: #166534;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.toolbar-left {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.toolbar-left input, .toolbar-left select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}
.pagination a, .pagination span {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 13px;
    color: #334155;
}
.pagination .current {
    background: #1e3a8a;
    color: #fff;
    border-color: #1e3a8a;
}
.pagination a:hover {
    background: #e2e8f0;
}

.form-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
.form-row.full { grid-template-columns: 1fr; }

.btn-submit {
    background: linear-gradient(135deg, #facc15, #eab308);
    color: #0f172a;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.btn-submit:hover {
    opacity: 0.9;
}
.btn-cancel {
    background: #e2e8f0;
    color: #334155;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.custom-field-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.custom-field-item input, .custom-field-item select {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 13px;
}
.btn-remove-field {
    background: #fee2e2;
    color: #991b1b;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
.btn-add-field {
    background: #dcfce7;
    color: #166534;
    border: 1px dashed #86efac;
    padding: 10px;
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-top: 10px;
}

/* 安装向导 */
.install-container {
    max-width: 600px;
    margin: 60px auto;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.install-container h2 {
    text-align: center;
    color: #0f172a;
    margin-bottom: 8px;
}
.install-container .sub {
    text-align: center;
    color: #64748b;
    margin-bottom: 28px;
    font-size: 14px;
}
.steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}
.step {
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}
.step .num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    font-weight: 600;
}
.step.active .num {
    background: #1e3a8a;
    color: #fff;
}
.step.done .num {
    background: #10b981;
    color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .header-inner { height: 64px; }
    .nav { display: none; }
    .nav.open {
        display: block;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: #0f172a;
        padding: 16px;
    }
    .menu-toggle { display: block; }
    .hero { padding: 50px 20px; }
    .hero h2 { font-size: 28px; }
    .hero-en { font-size: 14px; }
    .section { padding: 40px 20px; }
    .section-title h3 { font-size: 24px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-item .num { font-size: 32px; }
    .card-grid { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-intro-inner { grid-template-columns: 1fr; gap: 30px; }
    .query-form { padding: 24px; }
    .result-info { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-sidebar { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .page-hero h2 { font-size: 26px; }
}
