/* ===== 现代主题 · 全局变量 ===== */
:root {
    --c-primary: #2563eb;
    --c-primary-dark: #1d4ed8;
    --c-accent: #06b6d4;
    --c-bg: #f1f5f9;
    --c-surface: #ffffff;
    --c-text: #0f172a;
    --c-text-muted: #64748b;
    --c-border: #e2e8f0;
    --c-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --c-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
    --c-radius: 14px;
    --c-radius-sm: 8px;
    --c-gradient: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #06b6d4 100%);
    --c-gradient-soft: linear-gradient(135deg, #eff6ff 0%, #f0fdfa 100%);
}

body {
    background: var(--c-bg);
    color: var(--c-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ===== 头部导航 ===== */
.header-modern {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    height: 52px;
    min-width: 0;
}

.header-modern .header {
    height: 52px;
    align-items: center;
    min-width: 0;
}

.header-modern .header-left {
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.header-modern .header-right {
    flex-shrink: 0;
}

.header-modern .logo {
    padding: 0 16px 0 0;
    flex-shrink: 0;
}

.header-modern .logo img {
    height: 32px;
    transition: transform 0.3s ease;
}

.header-modern .logo:hover img {
    transform: scale(1.03);
}

.header-modern .nav {
    height: 52px;
    margin: 0;
}

.header-modern .nav ul li a {
    line-height: 52px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text-muted);
    transition: color 0.25s ease;
}

.header-modern .nav ul li:after {
    background: var(--c-gradient);
    height: 2px;
    border-radius: 2px;
    bottom: 10px;
}

.header-modern .nav ul li a:hover,
.header-modern .nav ul li.active a {
    color: var(--c-primary);
}

.header-modern .nav ul li ul {
    background: var(--c-surface);
    border-radius: var(--c-radius-sm);
    box-shadow: var(--c-shadow-lg);
    border: 1px solid var(--c-border);
    padding: 4px 0;
    margin-top: -2px;
}

.header-modern .nav ul li ul li a {
    line-height: 36px;
    padding: 0 16px;
    font-size: 13px;
}

.header-modern .toplink {
    line-height: 52px;
    height: 52px;
    margin-right: 4px;
}

.header-modern .toplink a {
    font-size: 13px;
}

.header-modern .nologin {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.header-modern .nologin a {
    line-height: normal !important;
    height: auto !important;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 16px;
    transition: all 0.25s ease;
}

.header-modern .nologin a:not(.active) {
    color: var(--c-text-muted);
}

.header-modern .nologin a:not(.active):hover {
    color: var(--c-primary);
    background: #eff6ff;
}

.header-modern .nologin a.active {
    background: var(--c-gradient);
    color: #fff;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.header-modern .islogin {
    line-height: 52px;
    padding-right: 0;
}

.header-modern .islogin .account a img {
    width: 28px;
    height: 28px;
}

.header-modern .islogin .account a {
    font-size: 13px;
}

.header-modern .islogin .account .panel {
    top: 52px;
    border-radius: var(--c-radius-sm);
    box-shadow: var(--c-shadow-lg);
    border: 1px solid var(--c-border);
}

/* ===== 首页 Hero ===== */
.hero-section {
    margin-top: 24px;
    position: relative;
}

.hero-carousel {
    border-radius: var(--c-radius);
    overflow: hidden;
    box-shadow: var(--c-shadow-lg);
    position: relative;
}

.hero-carousel .ui-carousel {
    border-radius: var(--c-radius);
}

.hero-carousel .ui-carousel-item {
    border-radius: var(--c-radius);
    overflow: hidden;
}

.hero-carousel .ui-carousel-page {
    bottom: 20px;
    z-index: 3;
}

.hero-carousel .ui-carousel-page li {
    background: rgba(255, 255, 255, 0.45);
    width: 8px;
    height: 8px;
}

.hero-carousel .ui-carousel-page li.active {
    background: #fff;
    width: 28px;
}

/* Hero 幻灯片 */
.hero-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 72px;
    min-height: 320px;
    padding: 48px 60px 56px;
    position: relative;
    overflow: hidden;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-slide--1 {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #0891b2 100%);
}

.hero-slide--2 {
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 50%, #7c3aed 100%);
}

.hero-slide--3 {
    background: linear-gradient(135deg, #064e3b 0%, #059669 45%, #0d9488 100%);
}

.hero-slide-content {
    flex: 0 1 auto;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.hero-slide-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.hero-slide-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.35;
    letter-spacing: 0.5px;
}

.hero-slide-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
    margin: 0 0 28px;
    max-width: 480px;
}

.hero-slide-btn {
    display: inline-block;
    background: #fff;
    color: var(--c-primary);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 24px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero-slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    color: var(--c-primary-dark);
}

.hero-slide-visual {
    flex: 0 0 280px;
    width: 280px;
    position: relative;
    z-index: 1;
}

.hero-slide-visual svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
}

.hero-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--c-surface);
    margin: -28px 40px 0;
    padding: 16px 24px;
    border-radius: var(--c-radius);
    box-shadow: var(--c-shadow-lg);
    position: relative;
    z-index: 2;
    border: 1px solid var(--c-border);
}

.hero-notice {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 14px;
}

.hero-notice-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-notice-tag i {
    font-size: 14px;
}

.hero-notice .ui-scroll {
    flex: 1;
    min-width: 0;
}

.hero-notice .ui-scroll ul {
    height: 36px;
    overflow: hidden;
}

.hero-notice .ui-scroll li a {
    color: var(--c-text);
    font-size: 14px;
    line-height: 36px;
    transition: color 0.2s;
}

.hero-notice .ui-scroll li a:hover {
    color: var(--c-primary);
}

.hero-search {
    position: relative;
    flex-shrink: 0;
    margin-left: 24px;
}

.hero-search input {
    border: 2px solid var(--c-border);
    height: 44px;
    line-height: 40px;
    padding: 0 50px 0 20px;
    width: 280px;
    border-radius: 22px;
    font-size: 14px;
    background: #f8fafc;
    transition: all 0.25s ease;
    outline: none;
}

.hero-search input:focus {
    border-color: var(--c-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hero-search button {
    border: 0;
    height: 36px;
    width: 36px;
    background: var(--c-gradient);
    color: #fff;
    border-radius: 50%;
    position: absolute;
    right: 4px;
    top: 4px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-search button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* ===== 内容区块 ===== */
.section-block {
    margin-top: 48px;
    padding-bottom: 16px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--c-text);
    margin: 0;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 40px;
    height: 4px;
    background: var(--c-gradient);
    border-radius: 2px;
}

.section-header--center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-desc {
    font-size: 14px;
    color: var(--c-text-muted);
    margin: 10px 0 0;
}

.section-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.section-nav a {
    border: 1px solid var(--c-border);
    color: var(--c-text-muted);
    background: var(--c-surface);
    padding: 6px 16px;
    font-size: 13px;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.section-nav a:hover,
.section-nav a.active {
    border-color: var(--c-primary);
    background: #eff6ff;
    color: var(--c-primary);
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--c-primary);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: gap 0.25s ease;
}

.section-more:hover {
    gap: 8px;
}

/* ===== 模板卡片 ===== */
.temp-list-item {
    transition: transform 0.3s ease;
}

.temp-list-item:hover {
    transform: translateY(-6px);
}

.temp-list-box {
    background: var(--c-surface);
    border-radius: var(--c-radius);
    border: 1px solid var(--c-border);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.temp-list-box:hover {
    box-shadow: var(--c-shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

.temp-list-box .item-image {
    border-radius: 0;
    background: #f0f4ff;
}

.temp-list-box .item-image img {
    transition: transform 0.4s ease;
    border-radius: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.temp-list-item:hover .temp-list-box .item-image img {
    transform: scale(1.05);
}

/* 演示模板预览图 */
.demo-thumb {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.demo-thumb::before {
    content: '';
    display: block;
    height: 18%;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-thumb::after {
    content: '';
    flex: 1;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 40%);
}

.demo-thumb span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    letter-spacing: 1px;
}

.demo-thumb--corp { background: linear-gradient(135deg, #1e40af, #0891b2); }
.demo-thumb--food { background: linear-gradient(135deg, #c2410c, #f59e0b); }
.demo-thumb--law { background: linear-gradient(135deg, #292524, #57534e); }
.demo-thumb--medical { background: linear-gradient(135deg, #0d9488, #06b6d4); }
.demo-thumb--edu { background: linear-gradient(135deg, #6d28d9, #a78bfa); }

.temp-list-item:hover .demo-thumb {
    transform: scale(1.05);
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    border-radius: 0;
}

.temp-list-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay-btn {
    background: #fff;
    color: var(--c-primary);
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.temp-list-item:hover .item-overlay-btn {
    transform: translateY(0);
}

.temp-list-box .item-text {
    padding: 18px 20px 12px;
}

.temp-list-box .item-text a {
    font-size: 16px;
    color: var(--c-text);
    transition: color 0.2s;
}

.temp-list-box .item-text a:hover {
    color: var(--c-primary);
}

.temp-list-box .item-text p {
    color: var(--c-text-muted);
    font-size: 13px;
    margin-top: 6px;
}

.temp-list-box .item-footer {
    padding: 0 20px 18px;
    border-top: none;
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px 12px 4px 12px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.pay-tag {
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    border: none !important;
}

.pay-tag--free {
    background: #ecfdf5;
    color: #059669;
}

.pay-tag--vip {
    background: #fef3c7;
    color: #d97706;
}

.pay-tag--paid {
    background: #fef2f2;
    color: #dc2626;
}

/* ===== 友情链接 ===== */
.friends-section {
    margin-top: 48px;
    padding: 48px 0;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
}

.friends-section .link {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 20px 0 0;
}

.friends-section .link a {
    margin: 0;
    border: 1px solid var(--c-border);
    padding: 10px 20px;
    border-radius: var(--c-radius-sm);
    font-size: 14px;
    color: var(--c-text-muted);
    background: #f8fafc;
    transition: all 0.25s ease;
}

.friends-section .link a:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: var(--c-shadow);
}

/* ===== 内页 Hero ===== */
.page-hero {
    background: var(--c-gradient);
    padding: 32px 0 48px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6,182,212,0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero .width {
    position: relative;
    z-index: 1;
}

.page-hero .ui-bread ul li,
.page-hero .ui-bread ul li a {
    color: rgba(255, 255, 255, 0.75);
}

.page-hero .ui-bread ul li + li:before {
    color: rgba(255, 255, 255, 0.5);
}

.page-hero .ui-bread ul li a:hover {
    color: #fff;
}

.page-hero-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 16px 0 8px;
    letter-spacing: 0.5px;
}

.page-hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.page-hero--about {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1d4ed8 100%);
}

/* ===== 列表页 ===== */
.page-content {
    margin-top: -24px;
    position: relative;
    z-index: 2;
    padding-bottom: 40px;
}

.filter-modern {
    background: var(--c-surface);
    border-radius: var(--c-radius);
    padding: 20px 24px;
    box-shadow: var(--c-shadow);
    border: 1px solid var(--c-border);
    margin-bottom: 28px;
}

.filter-modern .ui-row {
    display: flex;
    align-items: flex-start;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px dashed var(--c-border);
}

.filter-modern .ui-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-modern .ui-filter-left {
    width: 80px;
    flex-shrink: 0;
}

.filter-modern .ui-filter-left span {
    background: var(--c-gradient);
    padding: 5px 14px;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.filter-modern .ui-filter-right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: none;
    font-size: 0;
}

.filter-modern .ui-filter-right a {
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 20px;
    color: var(--c-text-muted);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.filter-modern .ui-filter-right a:hover {
    color: var(--c-primary);
    background: #eff6ff;
    border-color: #bfdbfe;
}

.filter-modern .ui-filter-right a.active {
    color: #fff;
    background: var(--c-gradient);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* ===== 关于我们 ===== */
.about-page {
    margin-top: -24px;
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
}

.about-tabs {
    display: flex;
    gap: 8px;
    background: var(--c-surface);
    padding: 8px;
    border-radius: var(--c-radius);
    box-shadow: var(--c-shadow);
    border: 1px solid var(--c-border);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.about-tab {
    padding: 10px 24px;
    border-radius: var(--c-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text-muted);
    transition: all 0.25s ease;
}

.about-tab:hover {
    color: var(--c-primary);
    background: #f8fafc;
}

.about-tab.active {
    background: var(--c-gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.about-card {
    background: var(--c-surface);
    border-radius: var(--c-radius);
    box-shadow: var(--c-shadow);
    border: 1px solid var(--c-border);
    overflow: hidden;
}

.about-card-body {
    padding: 40px 48px;
    min-height: 200px;
}

.about-card-body > p {
    font-size: 16px;
    line-height: 2;
    color: var(--c-text);
    margin-bottom: 20px;
    text-align: justify;
}

.about-card-body > h2,
.about-card-body > h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--c-text);
    margin: 32px 0 16px;
    padding-left: 16px;
    border-left: 4px solid var(--c-primary);
    border-bottom: none;
    line-height: 1.4;
}

.about-card-body > h2:first-child,
.about-card-body > h3:first-child {
    margin-top: 0;
}

.about-card-body img {
    max-width: 100%;
    border-radius: var(--c-radius-sm);
}

/* ===== 页脚 ===== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 0;
    min-height: auto;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 36px 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.footer-slogan {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer .copyright {
    padding: 16px 0;
    border-top: none;
}

.footer .copyright-body {
    max-width: none;
    color: #64748b;
    font-size: 13px;
}

.footer .copyright-body div,
.footer .copyright-body div a {
    color: #64748b;
}

.footer .copyright-body div a:hover {
    color: #cbd5e1;
}

/* ===== 侧边栏 ===== */
.sidebar-modern {
    z-index: 10 !important;
}

.sidebar-modern ul li a {
    transition: transform 0.2s ease;
}

.sidebar-modern ul li a:hover {
    transform: scale(1.1);
}

/* ===== 分页 ===== */
.page-content .ui-page ul li a,
.page-content .ui-page ul li span {
    border-radius: 8px;
}

.page-content .ui-page ul li.active a,
.page-content .ui-page ul li.active span {
    background: var(--c-gradient);
    border-color: transparent;
}

/* ===== 面包屑（非 hero 区域） ===== */
.ui-bread ul li a {
    transition: color 0.2s;
}

.ui-bread ul li a:hover {
    color: var(--c-primary);
}
