/*
 * tgzt Theme - CSS Styles
 * Telegram Blue配色
 * Based on all preview-*.html designs
 */

/* ===== CSS 自定义属性 ===== */
:root {
    --tg-blue: #006699;
    --tg-blue-light: #0088cc;
    --tg-blue-dark: #004466;
    --gold: #c9a227;
    --gold-light: #e8c547;
    --bg-white: #ffffff;
    --bg-gray: #fafbfc;
    --bg-blue-light: rgba(0, 102, 153, 0.03);
    --text-primary: #1a1a1a;
    --text-secondary: #5c5c5c;
    --text-muted: #8a8a8a;
    --border: #d4d4d4;
    --border-light: #ebebeb;
    --success: #0d805b;
    --success-bg: #d1fae5;
    --success-text: #065f46;
    --danger: #ef4444;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.14);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--tg-blue);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* ===== Container - Multi-size ===== */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.container-narrow {
    max-width: 720px;
}

.container-small {
    max-width: 600px;
}

.container-medium {
    max-width: 1120px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* ===== Header - With Search and Nav Links ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: border-color 0.2s ease;
}

.header.scrolled {
    border-bottom-color: var(--border);
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 64px;
    gap: 24px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-self: start;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.logo.show-mobile {
    justify-self: start;
}

.logo:hover {
    color: var(--tg-blue);
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tg-blue), var(--tg-blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
}

.logo-img {
    max-height: 36px;
    width: auto;
    flex-shrink: 0;
}

.logo-text {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
}

/* Search Box */
.search {
    flex: 1;
    max-width: 420px;
    position: relative;
}

.search-input-wrap {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-gray);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    border-color: var(--tg-blue);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

/* Nav Links */
.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-gray);
}

.nav-link-primary {
    background: var(--tg-blue);
    color: white;
}

.nav-link-primary:hover {
    background: var(--tg-blue-dark);
    color: white;
}

/* Mobile menu btn compatibility */
.mobile-menu-btn {
    display: none;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
}

/* Mobile Header Actions */
.header-actions-mobile {
    display: none;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-order-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--tg-blue);
    color: white;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-order-mobile:hover {
    background: var(--tg-blue-dark);
}

.btn-order-mobile svg {
    display: none;
}

@media (max-width: 900px) {
    .hide-mobile {
        display: none !important;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .header-actions-mobile {
        display: flex;
    }
    .header-inner {
        display: flex;
        grid-template-columns: none;
        justify-content: space-between;
        gap: 12px;
    }
    .logo {
        flex-shrink: 0;
        min-width: auto;
        justify-self: auto;
    }
    .nav {
        justify-self: auto;
    }
    .logo-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (min-width: 901px) {
    .show-mobile {
        display: none !important;
    }
}

/* ===== Main Content ===== */
.main-content {
    padding: 0 0 60px;
}

@media (min-width: 768px) {
    .main-content {
        padding: 0 0 80px;
    }
}

/* 给 main-content 内的 page-header 后面的 container 添加顶部 padding */
.main-content > .page-header + .container {
    padding-top: 12px;
}

@media (min-width: 768px) {
    .main-content > .page-header + .container {
        padding-top: 16px;
    }
}

/* ===== Page Header ===== */
.page-header {
    padding: 32px 0 24px;
    text-align: center;
}

@media (min-width: 768px) {
    .page-header {
        padding: 48px 0 32px;
    }
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 36px;
    }
}

.page-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .page-subtitle {
        font-size: 16px;
    }
}

/* Page Header Inline - 用于在container内的标题区域 */
.page-header-inline {
    padding: 0 0 24px;
    text-align: center;
}

@media (min-width: 768px) {
    .page-header-inline {
        padding: 0 0 32px;
    }
}

/* ===== HERO SECTION - Home Page ===== */
.hero {
    padding: 40px 0 32px;
}

.hero-card {
    background: var(--bg-blue-light);
    border: 1px solid rgba(0, 136, 204, 0.12);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

@media (max-width: 640px) {
    .hero {
        padding: 32px 0 24px;
    }
    .hero-card {
        padding: 24px;
        text-align: left;
    }
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 24px;
    }
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .hero-subtitle {
        font-size: 14px;
    }
}

/* Category Label */
h2.category-label,
.category-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-blue-light);
    color: var(--tg-blue-dark);
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 20px;
    /* 重置h2默认样式 */
    margin-top: 0;
    line-height: inherit;
}

.category-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tg-blue);
}

/* Product List */
.product-list {
    padding-bottom: 48px;
}

/* Product Grid - Home Page (Horizontal) */
.product-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Product Card - Horizontal (Scheme D: Luxury Style) */
.product-card {
    display: flex;
    align-items: stretch;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-bottom: 0;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.product-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--tg-blue), var(--tg-blue-dark));
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover {
    border-color: var(--tg-blue);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.product-card:hover::before {
    transform: scaleY(1);
}

.product-image-wrap {
    flex-shrink: 0;
    width: 160px;
    background: linear-gradient(135deg, var(--bg-blue-light), rgba(0, 136, 204, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-right: 1px solid var(--border-light);
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--tg-blue);
    opacity: 0.5;
}

.product-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 32px;
}

.product-info {
    flex: 1;
    min-width: 0;
}

h3.product-title,
.product-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 0.01em;
    /* 重置h3默认样式 */
    margin-top: 0;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: var(--tg-blue);
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: transparent;
    border: 1px solid rgba(13, 128, 91, 0.2);
    border-radius: 20px;
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

.stock-dot.out {
    background: var(--text-muted);
}

.product-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    flex-shrink: 0;
}

.product-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--tg-blue-dark);
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
}

.product-price small {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    background: var(--tg-blue);
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.btn-buy:hover {
    background: var(--tg-blue-dark);
    box-shadow: 0 6px 20px rgba(0, 102, 153, 0.35);
}

.btn-buy:active {
    transform: translateY(0);
}

.btn-buy svg {
    display: none;
}

/* ===== MOBILE: Compact Horizontal Layout (Scheme Alpha) ===== */
@media (max-width: 768px) {
    .product-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .product-card {
        flex-direction: row;
        border-radius: 16px;
        padding: 12px;
        gap: 10px;
    }

    .product-card::before {
        display: none;
    }

    .product-image-wrap {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
        border-right: none;
        border-radius: 12px;
    }

    .product-image-placeholder svg {
        width: 24px;
        height: 24px;
    }

    .product-content {
        flex: 1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 0;
        min-width: 0;
    }

    .product-info {
        flex: 1;
        min-width: 0;
    }

    h3.product-title,
    .product-title {
        font-size: 13px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 6px;
        font-weight: 500;
    }

    .product-meta {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .stock-badge {
        padding: 2px 6px;
        font-size: 9px;
        gap: 4px;
    }

    .stock-dot {
        width: 4px;
        height: 4px;
    }

    .product-action {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
        flex-shrink: 0;
        width: auto;
    }

    .product-price {
        font-size: 15px;
        font-weight: 700;
    }

    .product-price small {
        font-size: 10px;
    }

    .product-card .btn-buy {
        width: auto;
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 10px;
        gap: 0;
    }

    .btn-buy svg {
        display: none;
    }

    /* Article Cards Mobile */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .article-card {
        padding: 20px 20px 20px 24px;
        border-radius: 16px;
    }

    .article-card::before {
        display: none;
    }

    .article-meta {
        margin-bottom: 12px;
    }

    .read-time {
        display: none;
    }

    .article-title,
    .article-card-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .card-footer {
        margin-top: 16px;
        padding-top: 16px;
    }

    .author-badge {
        display: none;
    }
}

/* Articles Section - 5 articles */
.articles-section {
    padding: 48px 0;
    border-top: 1px solid var(--border-light);
}

.articles-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 24px;
}

.articles-title {
    font-size: 18px;
    font-weight: 700;
}

.articles-link {
    color: var(--tg-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.articles-link:hover {
    text-decoration: underline;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .article-card {
        padding: 20px 20px 20px 24px;
    }

    .read-time {
        display: none;
    }

    .author-badge {
        display: none;
    }
}

@media (max-width: 640px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

.article-card {
    padding: 28px 28px 28px 32px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    position: relative;
    height: 100%;
    box-shadow: var(--shadow-soft);
}

.article-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--tg-blue), var(--tg-blue-dark));
    border-radius: 4px 0 0 4px;
    transform: scaleY(0.3);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.article-card:hover {
    border-color: var(--tg-blue);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.article-card:hover::before {
    transform: scaleY(1);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.article-date {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin-bottom: 0;
}

.category-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.5;
}

.read-time {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.article-title,
.article-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 12px;
    flex: 1;
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.article-title a,
.article-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover,
.article-card-title a:hover {
    color: var(--tg-blue);
}

.article-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.card-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.author-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tg-blue), var(--tg-blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 600;
}

.author-name {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.read-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tg-blue);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.read-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.article-card:hover .read-link svg {
    transform: translateX(3px);
}

/* ===== TWO-COLUMN INFO SECTION ===== */
.info-section {
    padding: 48px 0;
    border-top: 1px solid var(--border-light);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.info-card {
    background: var(--bg-blue-light);
    border: 1px solid rgba(0, 136, 204, 0.12);
    border-radius: 16px;
    padding: 28px;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--tg-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon.alt {
    background: var(--text-primary);
}

.info-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.info-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Announcement Content */
.announcement-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.announcement-content p {
    margin-bottom: 12px;
}

.announcement-content p:last-child {
    margin-bottom: 0;
}

.announcement-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Guide Steps */
ol.guide-steps,
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    /* 隐藏有序列表默认标记 */
    list-style: none;
    padding-left: 0;
    margin: 0;
}

li.guide-step,
.guide-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.guide-step-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid rgba(0, 136, 204, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--tg-blue);
}

.guide-step-text-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.guide-step-text-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== FIVE-STEP BUYING GUIDE ===== */
ol.guide-steps-five {
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.guide-steps-five {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.guide-step-five {
    background: var(--bg-white);
    border: 1px solid rgba(0, 136, 204, 0.12);
    border-radius: 14px;
    padding: 20px 16px;
    position: relative;
    transition: all 0.2s ease;
}

.guide-step-five:hover {
    border-color: rgba(0, 136, 204, 0.3);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.1);
    transform: translateY(-2px);
}

.guide-step-number-five {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tg-blue), var(--tg-blue-light));
    color: white;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.guide-step-title-five {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.guide-step-desc-five {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.guide-step-arrow {
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    color: var(--tg-blue);
    opacity: 0.4;
}

.guide-step-arrow svg {
    width: 18px;
    height: 18px;
}

/* Gold announcement card variant */
.info-card.announcement-gold {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.08), rgba(232, 197, 71, 0.05));
    border-color: rgba(201, 162, 39, 0.25);
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .guide-steps-five {
        grid-template-columns: repeat(3, 1fr);
    }
    .guide-step-five:nth-child(3) .guide-step-arrow,
    .guide-step-five:nth-child(5) .guide-step-arrow {
        display: none;
    }
}

@media (max-width: 720px) {
    .guide-steps-five {
        grid-template-columns: 1fr;
    }
    .guide-step-arrow {
        display: none;
    }
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    padding: 16px 0 16px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--tg-blue);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

/* Page header 内的面包屑特殊样式 */
.page-header .breadcrumb {
    padding: 0 0 16px;
    text-align: left;
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
    background: var(--bg-gray);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

@media (max-width: 640px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

.footer-copy {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

@media (max-width: 640px) {
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.footer-link:hover {
    color: var(--tg-blue);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--text-primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.back-to-top-btn:hover {
    background: var(--tg-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.back-to-top-btn svg {
    width: 22px;
    height: 22px;
}

/* ===== Product Section (Buy Page) - Scheme 2: Split Layout ===== */
article.product-section,
.product-section {
    background: var(--bg-white);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    margin-bottom: 24px;
}

.product-section .product-top {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
}

.product-section .product-image-col {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
}

.product-section .product-image {
    width: 140px;
    height: 140px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 102, 153, 0.03), rgba(0, 136, 204, 0.08));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.product-section .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.product-section .product-image svg {
    width: 56px;
    height: 56px;
    color: var(--tg-blue);
}

.product-section .product-image span {
    font-size: 12px;
    color: var(--text-muted);
}

.product-section .product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-section h3.product-title,
.product-section .product-title {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
}

.product-section .product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-section .meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.product-section .meta-badge.instock {
    background: var(--success-bg);
    color: var(--success);
}

.product-section .meta-badge.info {
    background: var(--bg-gray);
    color: var(--text-secondary);
}

.product-section .product-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.product-section .price-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--tg-blue), var(--tg-blue-dark));
}

.product-section .price-info {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.product-section .price-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.product-section .price-value {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.product-section .stock-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
}

.product-section .purchase-form {
    padding: 20px;
}

.product-section .purchase-form form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-section .form-hidden-inputs {
    display: contents;
}

.product-section .form-row-1 {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: end;
}

.product-section .form-row-2 {
    display: flex;
    gap: 16px;
    align-items: start;
}

.product-section .form-row-2 .form-group {
    margin-bottom: 0;
}

.product-section .form-row-2 .form-group:first-child {
    flex: 1;
}

.product-section .payment-and-btn {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}

.product-section .payment-and-btn .payment-select {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
}

.product-section .payment-and-btn .payment-radio {
    display: flex;
}

.product-section .payment-and-btn .payment-radio label {
    display: flex;
    align-items: center;
    margin: 0;
}

.product-section .payment-and-btn .btn-buy {
    flex-shrink: 0;
    margin: 0;
}

.product-section .payment-group .order-link {
    padding: 8px 0 0 0;
    margin: 0;
    text-align: left;
    border: none;
}

@media (max-width: 640px) {
    .product-section .product-top {
        flex-direction: column;
        gap: 16px;
    }

    .product-section .product-image-col {
        width: 100%;
    }

    .product-section .product-image {
        width: 100%;
        height: 140px;
    }

    .product-section .product-image img {
        width: auto;
        height: 100%;
    }

    .product-section .form-row-1 {
        grid-template-columns: 1fr;
    }

    .product-section .form-row-2 {
        flex-direction: column;
    }

    .product-section .payment-and-btn {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .product-section .payment-and-btn .payment-select {
        justify-content: flex-start;
        width: 100%;
    }

    .product-section .payment-and-btn .btn-buy {
        width: 100%;
    }

    .product-section .payment-group .order-link {
        text-align: center !important;
        width: 100%;
    }

    .product-section .payment-select {
        gap: 8px;
        justify-content: flex-start;
    }

    .product-section .payment-radio {
        flex: 0 0 auto;
        min-width: 0;
    }

    .product-section .payment-radio label {
        padding: 11px 16px;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-section .price-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

.product-section .form-group {
    margin-bottom: 0;
}

.product-section .form-group.full {
    grid-column: 1 / -1;
}

.product-section .form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.product-section .form-label .required {
    color: var(--danger);
}

.product-section .form-input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: var(--bg-white);
    transition: all 0.2s ease;
}

.product-section .form-input:focus {
    outline: none;
    border-color: var(--tg-blue);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

.product-section .qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-section .qty-control {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-white);
}

.product-section .qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-gray);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
}

.product-section .qty-btn:hover {
    background: var(--border);
}

.product-section .qty-input {
    width: 56px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    background: var(--bg-white);
}

.product-section .payment-select {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-section .payment-radio {
    position: relative;
    flex: 0 0 auto;
}

.product-section .payment-radio input {
    position: absolute;
    opacity: 0;
}

.product-section .payment-radio label {
    display: block;
    padding: 11px 20px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    background: var(--bg-white);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.product-section .payment-radio input:checked + label {
    border-color: var(--tg-blue);
    background: rgba(0, 102, 153, 0.05);
    color: var(--tg-blue);
    font-weight: 600;
}

.product-section .btn-buy {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    background: var(--tg-blue);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.product-section .btn-buy:hover {
    background: var(--tg-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 153, 0.3);
}

.product-section .btn-buy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 640px) {
    .product-section .btn-buy {
        width: 100%;
    }

    .product-section .payment-and-btn {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .product-section .payment-and-btn .payment-select {
        justify-content: flex-start;
        width: 100%;
    }

    .product-section .payment-and-btn .btn-buy {
        width: 100%;
    }

    .product-section .payment-group .order-link {
        text-align: center !important;
        width: 100%;
    }

    .product-section .payment-select {
        gap: 8px;
        justify-content: flex-start;
    }

    .product-section .payment-radio {
        flex: 0 0 auto;
        min-width: 0;
    }

    .product-section .payment-radio label {
        padding: 11px 16px;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.product-section .order-link {
    text-align: center;
    font-size: 13px;
    padding: 0 20px 20px;
}

.product-section .order-link a {
    color: var(--tg-blue);
    text-decoration: none;
    font-weight: 500;
}

/* Detail Sections */
.detail-section {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    padding: 24px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .detail-section {
        padding: 32px;
        margin-bottom: 24px;
    }
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }
}

.section-title svg {
    width: 22px;
    height: 22px;
    color: var(--tg-blue);
}

@media (min-width: 768px) {
    .section-title svg {
        width: 24px;
        height: 24px;
    }
}

.detail-content {
    color: var(--text-secondary);
    line-height: 1.8;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.detail-content a {
    overflow-wrap: anywhere;
    word-break: break-all;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.detail-content h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .detail-content h3 {
        font-size: 16px;
        margin: 24px 0 12px;
    }
}

.detail-content p {
    margin-bottom: 14px;
}

@media (min-width: 768px) {
    .detail-content p {
        margin-bottom: 16px;
    }
}

.detail-content ul {
    margin: 14px 0;
    padding-left: 20px;
}

@media (min-width: 768px) {
    .detail-content ul {
        margin: 16px 0;
        padding-left: 24px;
    }
}

.detail-content li {
    margin-bottom: 8px;
}

/* ===== Bill Page Styles ===== */
.container-small {
    max-width: 600px;
}

/* Bill Card */
.bill-card {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    padding: 24px 20px;
    box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
    .bill-card {
        padding: 32px;
    }
}

.bill-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .bill-header {
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
}

.bill-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--bg-blue-light), rgba(42, 171, 238, 0.12));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

@media (min-width: 768px) {
    .bill-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        margin-bottom: 16px;
    }
}

.bill-icon svg {
    width: 28px;
    height: 28px;
    color: var(--tg-blue);
}

@media (min-width: 768px) {
    .bill-icon svg {
        width: 32px;
        height: 32px;
    }
}

.bill-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .bill-title {
        font-size: 22px;
    }
}

.bill-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Order Summary */
.order-summary {
    background: var(--bg-gray);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .order-summary {
        padding: 20px;
        margin-bottom: 24px;
    }
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.summary-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.summary-value {
    font-weight: 500;
    font-size: 14px;
    word-break: break-all;
    text-align: right;
    margin-left: 12px;
}

.summary-row.total {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 16px;
}

.summary-row.total .summary-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.summary-row.total .summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #ef4444;
}

@media (min-width: 768px) {
    .summary-row.total .summary-value {
        font-size: 28px;
    }
}

/* Buttons */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

@media (min-width: 768px) {
    .btn {
        padding: 14px 24px;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--tg-blue), var(--tg-blue-light));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
}

.btn-gray {
    background: var(--bg-gray);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-gray:hover {
    border-color: var(--text-muted);
    background: var(--border-light);
}

/* ===== Order Info Page Styles ===== */
.order-card {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    padding: 24px 20px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .order-card {
        padding: 32px;
        margin-bottom: 24px;
    }
}

.order-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

@media (min-width: 768px) {
    .order-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.order-title {
    font-size: 20px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .order-title {
        font-size: 22px;
    }
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
}

.order-status svg {
    width: 18px;
    height: 18px;
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-completed svg {
    color: #10b981;
}

.status-pending {
    background: rgba(251, 191, 36, 0.1);
    color: #92400e;
}

.status-pending svg {
    color: #f59e0b;
}

.status-expired {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

.status-expired svg {
    color: #ef4444;
}

.order-info-box {
    background: var(--bg-gray);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.info-value {
    font-weight: 500;
    font-size: 14px;
    text-align: right;
    word-break: break-all;
}

.info-value.price {
    font-size: 18px;
    font-weight: 700;
    color: var(--tg-blue);
}

.card-section {
    margin-bottom: 24px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title svg {
    width: 20px;
    height: 20px;
    color: var(--tg-blue);
}

.card-content {
    background: var(--bg-gray);
    border-radius: 12px;
    padding: 16px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-all;
    white-space: pre-wrap;
    margin-bottom: 12px;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    background: var(--tg-blue);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    background: var(--tg-blue-dark);
}

.btn-copy svg {
    width: 18px;
    height: 18px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 640px) {
    .action-buttons {
        flex-direction: row;
    }
    .action-buttons .btn {
        flex: 1;
    }
}

/* ===== Search Order Page Styles ===== */
.search-card {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    padding: 28px 20px;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
    .search-card {
        padding: 40px;
    }
}

.search-card-header {
    text-align: center;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .search-card-header {
        margin-bottom: 32px;
    }
}

.search-icon-wrapper,
.icon-wrapper {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--bg-blue-light), rgba(42, 171, 238, 0.12));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

@media (min-width: 768px) {
    .search-icon-wrapper,
    .icon-wrapper {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        margin-bottom: 20px;
    }
}

.search-icon-wrapper svg,
.icon-wrapper svg {
    width: 28px;
    height: 28px;
    color: var(--tg-blue);
}

@media (min-width: 768px) {
    .search-icon-wrapper svg,
    .icon-wrapper svg {
        width: 32px;
        height: 32px;
    }
}

.search-title,
.page-header-text h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .search-title,
    .page-header-text h1 {
        font-size: 24px;
    }
}

.search-desc,
.page-header-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

.page-header-text {
    text-align: center;
    margin-bottom: 32px;
}

.page-header-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .page-header-text h1 {
        font-size: 28px;
    }
}

.page-header-text p {
    color: var(--text-secondary);
    font-size: 14px;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--bg-blue-light), rgba(42, 171, 238, 0.12));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.icon-wrapper svg {
    width: 32px;
    height: 32px;
    color: var(--tg-blue);
}

.search-form {
    max-width: 400px;
    margin: 0 auto;
}

.search-form .form-group {
    margin-bottom: 20px;
}

.search-form .form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.search-form .form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: var(--bg-white);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.search-form .form-input:focus {
    outline: none;
    border-color: var(--tg-blue);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

.search-form .btn-primary,
.btn-search {
    width: 100%;
}

.btn-search {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--tg-blue), var(--tg-blue-light));
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3);
}

/* ===== Search Results Page Styles ===== */
.search-header {
    padding: 32px 0 24px;
}

.search-query {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.search-query strong {
    color: var(--text-primary);
}

.results-title {
    font-size: 24px;
    font-weight: 700;
}

.results-section {
    margin-bottom: 40px;
}

.section-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

/* Product Grid for Search - 3 columns */
.product-grid-search {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .product-grid-search {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .product-grid-search {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.product-card-search {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

@media (min-width: 768px) {
    .product-card-search {
        padding: 20px;
        border-radius: 16px;
    }
}

.product-card-search:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: var(--tg-blue);
}

.product-card-search .product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .product-card-search .product-name {
        font-size: 15px;
    }
}

.product-card-search .product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-card-search .product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--tg-blue);
}

.product-card-search .product-stock {
    font-size: 12px;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .product-card-search .product-stock {
        font-size: 13px;
    }
}

/* Article List for Search */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
}

@media (min-width: 768px) {
    .article-item {
        padding: 20px;
    }
}

.article-item:hover {
    border-color: var(--tg-blue);
    box-shadow: var(--shadow-soft);
}

.article-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.article-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--bg-blue-light);
    color: var(--tg-blue-dark);
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.article-date {
    font-size: 12px;
    color: var(--text-muted);
}

.article-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.article-item-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 0;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-results-icon svg {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
}

.no-results-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.no-results-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    background: var(--tg-blue);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.btn-back:hover {
    background: var(--tg-blue-dark);
}

/* ===== Article List Page Styles ===== */
.article-grid,
.article-grid-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .article-grid,
    .article-grid-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .article-grid,
    .article-grid-list {
        gap: 24px;
    }
}

.article-card,
.article-card-list {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

@media (min-width: 768px) {
    .article-card,
    .article-card-list {
        padding: 24px;
    }
}

.article-card:hover,
.article-card-list:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--tg-blue);
}

.article-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .article-card-header {
        margin-bottom: 16px;
    }
}

.article-card .article-date,
.article-card-list .article-date {
    font-size: 13px;
    color: var(--text-muted);
}

.article-card .article-card-title,
.article-card-list .article-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .article-card .article-card-title,
    .article-card-list .article-card-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
}

.article-card .article-card-excerpt,
.article-card-list .article-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .article-card .article-card-excerpt,
    .article-card-list .article-excerpt {
        margin-bottom: 16px;
    }
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

@media (min-width: 768px) {
    .article-card-footer {
        padding-top: 16px;
    }
}

.article-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tg-blue), var(--tg-blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 600;
}

@media (min-width: 768px) {
    .author-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

.read-more {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tg-blue);
    text-decoration: none;
}

/* Ensure article card links don't have blue text */
.article-card,
.article-card-list {
    color: inherit;
}

.article-card .article-card-title,
.article-card-list .article-card-title {
    color: var(--text-primary);
}

.article-card .article-card-excerpt,
.article-card-list .article-excerpt {
    color: var(--text-secondary);
}

.article-card .article-author,
.article-card-list .article-author {
    color: var(--text-secondary);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--tg-blue);
    color: var(--tg-blue);
}

.pagination-btn.active {
    background: var(--tg-blue);
    border-color: var(--tg-blue);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== Article Page Styles ===== */
.article-page {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    padding: 24px;
}

@media (min-width: 768px) {
    .article-page {
        padding: 32px;
    }
}

.article-page-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 24px;
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.article-back-link:hover {
    color: var(--tg-blue);
}

.article-back-link svg {
    width: 18px;
    height: 18px;
}

.article-page-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .article-page-title {
        font-size: 32px;
    }
}

.article-page-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-page-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.article-page-date svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.article-page-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.article-page-author svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.article-page-author a {
    color: var(--tg-blue);
    text-decoration: none;
}

.article-page-author a:hover {
    text-decoration: underline;
}

.article-intro {
    background: var(--bg-gray);
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.article-content-body {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 15px;
}

@media (min-width: 768px) {
    .article-content-body {
        font-size: 16px;
    }
}

.article-content-body h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--text-primary);
}

.article-content-body h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text-primary);
}

.article-content-body p {
    margin-bottom: 16px;
}

.article-content-body ul,
.article-content-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content-body li {
    margin-bottom: 8px;
}

.article-content-body a {
    color: var(--tg-blue);
    text-decoration: underline;
}

.article-content-body blockquote {
    border-left: 3px solid var(--tg-blue);
    padding-left: 20px;
    margin: 24px 0;
    color: var(--text-secondary);
}

.article-content-body code {
    background: var(--bg-gray);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.article-content-body pre {
    background: var(--bg-gray);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.article-content-body pre code {
    background: none;
    padding: 0;
}

.article-content-body img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 16px 0;
}

/* Article Related Section */
aside.article-related-section,
.article-related-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    /* 重置aside默认样式 */
    display: block;
}

.article-related-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-related-title svg {
    width: 18px;
    height: 18px;
    color: var(--tg-blue);
}

.article-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (min-width: 768px) {
    .article-related-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

.article-related-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
}

.article-related-card:hover {
    border-color: var(--tg-blue);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.article-related-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--bg-blue-light);
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.article-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-related-image svg {
    width: 24px;
    height: 24px;
    color: var(--tg-blue);
    opacity: 0.5;
}

.article-related-card-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-related-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.article-related-card-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--tg-blue);
}

.article-related-card-date {
    font-size: 10px;
    color: var(--text-muted);
}


/* ===== 404 Error Page Styles ===== */
.error-card {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    padding: 48px 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
    .error-card {
        padding: 64px 40px;
    }
}

.error-code {
    font-size: 80px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--tg-blue), var(--tg-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .error-code {
        font-size: 100px;
    }
}

.error-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .error-title {
        font-size: 28px;
    }
}

.error-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .error-desc {
        font-size: 16px;
    }
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

@media (min-width: 640px) {
    .btn-group {
        flex-direction: row;
    }
}

/* ===== Articles Timeline Style (Scheme Delta) ===== */
.articles-timeline {
    position: relative;
    padding-left: 36px;
}

.articles-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--tg-blue), var(--tg-blue-light));
    border-radius: 2px;
}

.article-card-timeline {
    position: relative;
    display: block;
    padding: 20px 24px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-white);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--shadow-soft);
    margin-bottom: 16px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.article-card-timeline:last-child {
    margin-bottom: 0;
}

.article-card-timeline::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 26px;
    width: 16px;
    height: 16px;
    background: var(--tg-blue);
    border: 3px solid var(--bg-white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--tg-blue);
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.article-card-timeline:hover {
    border-color: var(--tg-blue);
    box-shadow: var(--shadow-hover);
    transform: translateX(4px);
}

.article-card-timeline:hover::before {
    transform: scale(1.2);
}

.article-card-timeline .article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.article-card-timeline .article-date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.article-card-timeline .category-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.5;
}

.article-card-timeline .read-time {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.article-card-timeline .article-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.article-card-timeline .article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card-timeline .article-title a:hover {
    color: var(--tg-blue);
}

.article-card-timeline .article-title,
.article-card-timeline .article-excerpt {
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-all;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
    max-width: 100%;
    width: 100%;
    display: block;
}

.article-card-timeline .article-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

@media (max-width: 600px) {
    .articles-timeline {
        padding-left: 30px;
    }

    .articles-timeline::before {
        left: 9px;
    }

    .article-card-timeline::before {
        left: -28px;
        width: 14px;
        height: 14px;
    }
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 100%;
    background-color: #FFFFFF;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu-title {
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-menu-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
}

.close-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.mobile-menu-nav {
    padding: 1rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.mobile-nav-link .nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.mobile-nav-link:hover {
    background-color: var(--bg-gray);
}

.mobile-search-box {
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
}

.mobile-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background-color: var(--bg-gray);
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mobile-search-input:focus {
    outline: none;
    border-color: var(--tg-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 153, 0.2);
}

/* ===== Product Related Section ===== */
.related-section {
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    padding: 16px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .related-section {
        padding: 20px;
        margin-bottom: 20px;
    }
}

.related-header {
    margin-bottom: 12px;
}

.related-title {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

@media (min-width: 768px) {
    .related-title {
        font-size: 16px;
        padding-bottom: 12px;
    }
}

.related-title svg {
    width: 18px;
    height: 18px;
    color: var(--tg-blue);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .related-title svg {
        width: 20px;
        height: 20px;
    }
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 640px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

.related-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 768px) {
    .related-card {
        padding: 14px;
        border-radius: 12px;
    }
}

.related-card:hover {
    border-color: var(--tg-blue);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.related-card-image {
    width: 100%;
    aspect-ratio: 1;
    max-height: 100px;
    border-radius: 8px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (min-width: 768px) {
    .related-card-image {
        max-height: 120px;
    }
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-image svg {
    width: 36px;
    height: 36px;
    color: var(--tg-blue);
    opacity: 0.5;
}

.related-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

@media (min-width: 768px) {
    .related-card-title {
        font-size: 14px;
    }
}

.related-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid var(--border-light);
}

.related-card-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--tg-blue);
}

.related-card-stock {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== Contact Section ===== */
aside.contact-section,
.contact-section {
    margin-bottom: 20px;
    /* 重置aside默认样式 */
    display: block;
}

@media (min-width: 768px) {
    aside.contact-section,
    .contact-section {
        margin-bottom: 24px;
    }
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.contact-btn:hover {
    border-color: var(--tg-blue);
    background: rgba(0, 102, 153, 0.05);
    color: var(--tg-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 153, 0.15);
}

.contact-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mobile-search-input::placeholder {
    color: var(--text-muted);
}

/* ===== Accessibility: Form Error Styles ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.input-error {
    border-color: var(--danger) !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
}

.input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.form-error {
    margin-top: 8px;
    font-size: 13px;
    color: var(--danger);
    line-height: 1.5;
    font-weight: 500;
}

.form-error::before {
    content: "⚠ ";
}

/* Focus visible enhancement for keyboard users */
:focus-visible {
    outline: 2px solid var(--tg-blue);
    outline-offset: 2px;
}

/* ===== Article Table of Contents (TGZT) ===== */
.article-toc {
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
}

.article-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.article-toc-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-toc-title .toc-icon {
    width: 16px;
    height: 16px;
    color: var(--tg-blue);
}

.article-toc-toggle {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.article-toc-toggle.rotate {
    transform: rotate(180deg);
}

.article-toc-content {
    margin-top: 8px;
}

/* Mobile: default hidden */
.toc-mobile-hidden {
    display: none;
}

/* Desktop: always show, hide toggle button */
@media (min-width: 768px) {
    .article-toc {
        padding: 14px 16px;
    }
    .article-toc-toggle {
        display: none;
    }
    .article-toc-header {
        cursor: default;
    }
    .article-toc-content {
        display: block !important;
    }
}

/* TOC list styles (matches backend generated HTML) */
.article-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-toc-list li {
    margin: 4px 0;
}

.article-toc-list a {
    display: block;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.article-toc-list a:hover,
.article-toc-list a.active {
    background: var(--bg-blue-light);
    color: var(--tg-blue);
}

.article-toc-list a.active {
    font-weight: 500;
}

.article-toc-list ol {
    list-style: none;
    padding-left: 16px;
    margin: 4px 0 0;
}
