/**
 * XDZT Theme Styles
 * Telegram账号购买平台主题样式
 */

/* 全局样式 */
:root {
    --primary-color: #0066cc;
    --secondary-color: #0052a3;
    --accent-color: #27ae60;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gradient-primary: linear-gradient(90deg, #0052a3 0%, #0066cc 100%);
    --gradient-success: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 主内容区域 */
.main-content {
    min-height: calc(100vh - 200px);
}

/* 按钮样式 */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #0052a3 0%, #0077cc 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-success {
    background: var(--gradient-success);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-success:hover {
    background: linear-gradient(90deg, #229954 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    padding: 10px 22px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.card-body {
    padding: 25px;
}

/* 表单样式 */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-control:hover {
    border-color: var(--secondary-color);
}

/* 头部和导航栏样式 */
.header {
    background: linear-gradient(90deg, #0052a3 0%, #0066cc 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 15px 0;
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-light);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #00ff99 !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: #00ff99;
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border: 2px solid white;
    border-radius: 8px;
    padding: 8px 12px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 搜索框样式 */
.search-container {
    max-width: 400px;
    width: 100%;
}

.app-search {
    position: relative;
}

.app-search input {
    border-radius: 25px;
    border: none;
    padding: 10px 45px 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.app-search input:focus {
    background: white;
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.3);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #0066cc;
    cursor: pointer;
}

.navbar-mobile-search { padding: 8px 0; }
.navbar-mobile-search .app-search input { width: 100%; }

.search-container-mobile {
    background: rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.search-container-mobile .app-search input {
    width: 100%;
}

/* 导航栏响应式样式 */
@media (max-width: 991px) {
    .navbar-nav {
        text-align: center;
        margin-top: 15px;
    }
    
    .navbar-nav .nav-link {
        margin: 5px 0;
        padding: 10px;
        border-radius: 5px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* 面包屑导航样式 */
.breadcrumb-nav {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    margin: 0;
    background: transparent;
    padding: 0;
    display: block; /* 使用内联模型，避免flex导致的整项换行 */
    width: 100%;
    white-space: normal;
    --bs-breadcrumb-divider: ""; /* 禁用Bootstrap默认分隔符，避免重复或干扰 */
}

.breadcrumb-item {
    display: inline;
    white-space: nowrap;
}

.breadcrumb-item a {
    color: #0052a3;
    text-decoration: none;
    white-space: nowrap;
}

.breadcrumb-item:last-child a {
    white-space: normal;
}

.breadcrumb-item:last-child,
.breadcrumb-item.active {
    display: inline;
    white-space: normal;
}

.breadcrumb-item a:hover {
    color: #0066cc;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* 面包屑分隔符位置改为前一项的结尾，避免换行时分隔符独占一行 */
.breadcrumb .breadcrumb-item::before { content: none !important; }
.breadcrumb > .breadcrumb-item + .breadcrumb-item::before { content: "/" !important; color: #6c757d; padding: 0 8px; float: none !important; display: inline !important; }

.breadcrumb-item:last-child { }

.breadcrumb-item:last-child a,
.breadcrumb-item.active,
.breadcrumb-item.active a {
    display: inline;
    max-width: 100%;
    overflow: visible;
    white-space: normal;
}

@media (max-width: 576px) {
    .breadcrumb-nav { padding: 10px 0; }
    .breadcrumb { font-size: 0.95rem; }
}

/* 首页特定样式 */
.hero-section {
    background: linear-gradient(90deg, #0052a3 0%, #0066cc 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.notice-section {
    padding: 60px 0;
    background: #e9ecef;
}

.notice-box {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.notice-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.products-section {
    padding: 80px 0;
    background: #f5f7fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.product-card {
    transition: transform 0.3s ease;
    height: auto;
    display: block;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: auto;
    display: block;
}

.product-image {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.product-price .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e74c3c;
}

/* 旧的商品卡片样式已清理 */

.in-stock {
    background: #1e7e34;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.out-of-stock {
    background: #c82333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.btn-buy {
    background: linear-gradient(90deg, #1e7e34 0%, #1aa179 100%);
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-buy:hover {
    background: linear-gradient(90deg, #229954 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.account-types-section {
    padding: 80px 0;
    background: #f0f2f5;
}

.account-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.account-type-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

.account-type-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    border-color: #dee2e6;
}

.type-icon {
    font-size: 3.5rem;
    color: #0052a3;
    margin-bottom: 20px;
}

.type-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.type-description {
    color: #666;
    line-height: 1.6;
}

.advantages-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    border-color: #dee2e6;
}

.advantage-icon {
    font-size: 3.5rem;
    color: #0052a3;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.advantage-card p {
    color: #666;
    line-height: 1.6;
}

.process-section {
    padding: 80px 0;
    background: #ffffff;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #0052a3;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.step-icon {
    font-size: 2.5rem;
    color: #0099ff;
    margin-bottom: 15px;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.step-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.process-step p {
    color: #666;
    font-size: 0.9rem;
}

.blog-section {
    padding: 80px 0;
    background: #f0f2f5;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-card .card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 15px 0;
    color: #333;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-date {
    color: #666;
    font-size: 0.9rem;
}

.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-content {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 2.5rem;
    color: #0052a3;
    margin-right: 20px;
    width: 60px;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.contact-info p {
    color: #666;
    margin-bottom: 5px;
}

.contact-detail {
    color: #0099ff;
    font-weight: 600;
}

.navbar-toggler {
    border: 2px solid white;
    border-radius: 8px;
    padding: 8px 12px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 搜索框样式 */
.app-search {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.app-search input {
    border-radius: 25px;
    border: none;
    padding: 12px 45px 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    font-size: 1rem;
}

.app-search input:focus {
    background: white;
    box-shadow: 0 0 20px rgba(0, 153, 255, 0.3);
    outline: none;
}

.app-search input::placeholder {
    color: #666;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.search-icon:hover {
    color: var(--secondary-color);
}

/* 英雄区域 */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="1" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(100px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 区块标题 */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--dark-color);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* 公告区域 */
.notice-section {
    padding: 60px 0;
    background: #e9ecef;
}

.notice-box {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-medium);
    border-left: 5px solid var(--primary-color);
}

.notice-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.notice-content h1, .notice-content h2, .notice-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* 商品列表布局 */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

/* 商品列表项样式 - 统一的列表式布局 */
.product-list-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    padding: 12px;
    transition: all 0.3s ease;
    gap: 12px;
    margin-bottom: 8px;
}

.product-list-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    background: #ffffff;
    border-color: #dee2e6;
}

/* 商品图片 */
.product-list-image {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-list-placeholder {
    color: white;
    font-size: 1.8rem;
}

/* 商品内容区域 */
.product-list-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 商品标题 */
.product-list-header {
    margin-bottom: 2px;
}

.product-list-title {
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.6em;
}

/* 商品元信息 */
.product-list-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.product-list-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--danger-color);
    white-space: nowrap;
}

.product-list-sales {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
}

.product-list-stock {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
}

.product-list-stock.in-stock {
    color: var(--success-color);
    background-color: rgba(40, 167, 69, 0.1);
}

.product-list-stock.out-of-stock {
    color: var(--danger-color);
    background-color: rgba(220, 53, 69, 0.1);
}

.product-list-action {
    margin-left: auto;
}

.btn-buy-now {
    background: linear-gradient(135deg, #0052a3, #0066cc);
    color: white;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 102, 204, 0.2);
    white-space: nowrap;
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #0052a3, #0077cc);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
    transform: translateY(-1px);
}
    
    .mobile-product-header {
        margin-bottom: 6px;
    }
    
    .mobile-product-title {
        font-size: 0.95rem;
        font-weight: 600;
        color: #2c3e50;
        margin: 0;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        max-height: 2.5em;
    }
    
    .mobile-product-details {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }
    
    .mobile-product-info {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
    }
    
    .mobile-price {
        font-size: 1rem;
        font-weight: 700;
        color: #e74c3c;
        white-space: nowrap;
    }
    
    .mobile-sales {
        font-size: 0.75rem;
        color: #666;
        white-space: nowrap;
    }
    
    .mobile-stock {
        font-size: 0.75rem;
        font-weight: 500;
        padding: 2px 5px;
        border-radius: 3px;
        white-space: nowrap;
    }
    
    .mobile-stock.in-stock {
        color: #28a745;
        background-color: rgba(40, 167, 69, 0.1);
    }
    
    .mobile-stock.out-of-stock {
        color: #dc3545;
        background-color: rgba(220, 53, 69, 0.1);
    }
    
    .mobile-buy-btn {
        background: linear-gradient(135deg, #0052a3, #0066cc);
        color: white;
        text-decoration: none;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 0.8rem;
        font-weight: 500;
        white-space: nowrap;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(0, 102, 204, 0.2);
    }
    
    .mobile-buy-btn:hover {
        background: linear-gradient(135deg, #0052a3, #0077cc);
        box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
        transform: translateY(-1px);
    }
}

/* 旧的商品卡片样式已删除，使用新的列表式布局 */

/* 移动端列表式布局 - 重新设计 */
@media (max-width: 768px) {
    .products-grid {
        gap: 4px;
        padding: 0 6px;
        margin-top: 12px;
    }
    
    .product-list-item {
        padding: 8px;
        gap: 8px;
        border-radius: 6px;
        min-height: 60px;
        margin-bottom: 4px;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    }
    
    .product-list-item:hover {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
        transform: translateY(-0.5px);
        background: #ffffff;
        border-color: #ced4da;
    }
    
    .product-list-image {
        width: 50px;
        height: 50px;
        border-radius: 5px;
        flex-shrink: 0;
    }
    
    .product-list-placeholder {
        font-size: 1.2rem;
    }
    
    .product-list-content {
        gap: 4px;
        flex: 1;
        min-width: 0;
    }
    
    .product-list-header {
        margin-bottom: 1px;
    }
    
    .product-list-title {
        font-size: 0.85rem;
        line-height: 1.25;
        max-height: 2.5em;
        -webkit-line-clamp: 2;
        font-weight: 500;
        color: #333;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        word-break: break-word;
    }
    
    .product-list-meta {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .product-list-price {
        font-size: 0.9rem;
        font-weight: 600;
        color: #e74c3c;
        white-space: nowrap;
    }
    
    .product-list-sales {
        font-size: 0.7rem;
        color: #666;
        white-space: nowrap;
    }
    
    .product-list-stock {
        font-size: 0.65rem;
        font-weight: 500;
        padding: 1px 3px;
        border-radius: 2px;
        white-space: nowrap;
    }
    
    .product-list-stock.in-stock {
        color: #28a745;
        background-color: rgba(40, 167, 69, 0.1);
    }
    
    .product-list-stock.out-of-stock {
        color: #dc3545;
        background-color: rgba(220, 53, 69, 0.1);
    }
    
    .product-list-action {
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .btn-buy-now {
        padding: 3px 8px;
        font-size: 0.7rem;
        border-radius: 3px;
        font-weight: 500;
        min-width: 36px;
        text-align: center;
        box-shadow: 0 1px 2px rgba(0, 102, 204, 0.2);
    }
    
    .btn-buy-now:hover {
        box-shadow: 0 2px 4px rgba(0, 102, 204, 0.3);
        transform: translateY(-0.5px);
    }
}

/* 旧的商品卡片样式已清理 */

.product-stock .in-stock {
    color: var(--accent-color);
    font-weight: 600;
    background: rgba(39, 174, 96, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.product-stock .out-of-stock {
    color: var(--danger-color);
    font-weight: 600;
    background: rgba(231, 76, 60, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-buy {
    background: var(--gradient-success);
    border: none;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    width: 100%;
    margin-top: 15px;
}

.btn-buy:hover {
    background: linear-gradient(90deg, #229954 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* 账号类型区域 */
.account-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.account-type-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.account-type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.type-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.account-type-card:hover .type-icon {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.account-type-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.account-type-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.type-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.feature {
    background: #e8f4fd;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.feature:hover {
    background: var(--primary-color);
    color: white;
}

/* 优势区域 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-card {
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius);
    background: #f8f9fa;
    transition: var(--transition);
    border: 2px solid transparent;
}

.advantage-card:hover {
    transform: translateY(-5px);
    background: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.advantage-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1);
    color: var(--success-color);
}

.advantage-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.advantage-card p {
    color: #666;
    line-height: 1.6;
}

/* 流程步骤 - 使用语义化的有序列表 */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
    list-style: none;
    padding: 0;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
    box-shadow: var(--shadow-light);
}

.step-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.process-step:hover .step-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.process-step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.process-step p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 博客区域 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card .card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.blog-card .card:hover {
    box-shadow: var(--shadow-heavy);
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card .card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 15px 0;
    color: var(--dark-color);
    line-height: 1.4;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.blog-date {
    color: #666;
    font-size: 0.9rem;
}

/* 联系区域 */
.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-content {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.contact-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    width: 60px;
    text-align: center;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.contact-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.contact-info p {
    color: #666;
    margin-bottom: 5px;
}

.contact-detail {
    color: var(--primary-color);
    font-weight: 600;
}

/* 页脚 */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer h5 {
    color: var(--success-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--success-color);
    padding-left: 5px;
}

.footer-copyright p {
    color: #bdc3c7;
    margin-bottom: 5px;
}

.footer .fw-bold {
    color: var(--success-color);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.25rem;
}

.footer-copyright .fw-bold {
    color: var(--success-color);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #0052a3 0%, #0077cc 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 面包屑导航 */
.breadcrumb-nav {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    margin: 0;
    background: transparent;
    padding: 0;
    display: block;
    width: 100%;
    white-space: normal;
}

.breadcrumb-item {
    display: inline;
    white-space: nowrap;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.breadcrumb-item:last-child,
.breadcrumb-item.active {
    display: inline;
    white-space: normal;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* 错误页面 */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    background: #f8f9fa;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 30px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.error-title {
    font-size: 6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.error-subtitle {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.error-message {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 商品详情页样式 - 三段式布局 */
.product-detail-section {
    padding: 40px 0;
    background: var(--light-color);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 20px;
    align-items: flex-start;
    min-height: 280px;
    position: relative;
}

/* 🔧 精确对齐校准系统 */
/* 🎨 对齐调试工具 - 临时使用，验证对齐效果 */
.debug-alignment .product-image-card,
.debug-alignment .product-info-card,
.debug-alignment .purchase-card {
    position: relative;
}

.debug-alignment .product-image-card::before,
.debug-alignment .product-info-card::before,
.debug-alignment .purchase-card::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    height: 1px;
    background: #ff0000;
    opacity: 0.5;
    z-index: 9999;
}
.product-detail-grid::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    height: 1px;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

/* 统一对齐基准 */
.card-baseline {
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    height: 1px;
    background: transparent;
    pointer-events: none;
}

/* 确保所有卡片的顶部内容对齐 */
.product-image-card,
.product-info-card,
.purchase-card {
    position: relative;
}

.product-image-card > *:first-child,
.product-info-card > *:first-child,
.purchase-card > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 左侧图片区域 */
.product-image-col {
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.product-image-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* 🎯 精确顶部对齐 - 移除内边距 */
    padding: 0;
}

.product-image-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.product-main-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    /* 🎯 图片顶部对齐 */
    display: block;
}

.product-image-placeholder {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: white;
    font-size: 3rem;
    /* 🎯 精确顶部对齐 - 移除内边距 */
    padding: 0;
}

.product-image-text {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    padding: 0 10px;
    line-height: 1.3;
}

/* 中间信息区域 */
.product-info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    /* 🎯 精确顶部对齐 - 移除内边距 */
    padding: 0;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: flex-start;
    width: 100%;
    position: relative;
    top: 0;
    box-sizing: border-box;
}

.product-info-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.2;
    /* 🎯 精确顶部对齐 - 重置所有间距 */
    margin: 0;
    padding: 16px 16px 0 16px;
    min-height: 1.32rem;
}

.product-stock-status {
    /* 🎯 精确对齐 - 统一内边距 */
    padding: 0 16px;
    margin-bottom: 12px;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: #e8f5e8;
    color: #28a745;
    border: 1px solid #d4edda;
}

.stock-badge.in-stock i {
    font-size: 0.9rem;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    /* 🎯 精确对齐 - 统一内边距 */
    padding: 0 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    font-size: 0.8rem;
    padding: 2px 0;
}

.feature-item i {
    color: #28a745;
    font-size: 0.8rem;
    width: 14px;
    text-align: center;
}

.product-stats {
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    color: #666;
    font-size: 0.85rem;
}

.stat-value {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 横向产品特性 - 紧凑布局 */
.product-features-horizontal {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 0;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f8f9ff, #e8f4fd);
    border-radius: 8px;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.feature-item-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
    text-align: center;
}

.feature-item-horizontal i {
    color: #28a745;
    font-size: 1rem;
    margin-bottom: 2px;
}

.feature-item-horizontal span {
    color: #555;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
}

/* 紧凑统计 */
.product-stats-compact {
    margin-bottom: 8px;
    padding: 0 16px;
}

.product-stats-compact .stat-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.product-stats-compact .stat-label {
    color: #666;
    font-size: 0.8rem;
}

.product-stats-compact .stat-value {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.85rem;
}

/* 右侧购买区域 */
.product-purchase-col {
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.purchase-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: flex-start;
    width: 100%;
    /* 🎯 精确顶部对齐 - 移除内边距 */
    padding: 0;
}

.purchase-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.price-section {
    /* 🎯 精确顶部对齐 - 统一顶部间距 */
    padding: 16px 15px 15px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    flex-shrink: 0;
    min-height: 3.6rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.current-price {
    margin-bottom: 0;
    padding-bottom: 0;
    line-height: 1.2;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e74c3c;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 0;
    padding-bottom: 0;
}

.original-price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.original-price .price-label {
    color: #666;
}

.original-price .price-value {
    color: #666;
    text-decoration: line-through;
}

/* 紧凑价格区域 */
.price-section-compact {
    padding: 12px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    flex-shrink: 0;
}

.current-price-compact {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
}

.price-amount-compact {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
    letter-spacing: -0.5px;
}

.original-price-compact {
    color: #666;
    text-decoration: line-through;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 紧凑表单 */
.form-group-compact {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-label-compact {
    margin-bottom: 3px;
    color: #555;
    font-size: 0.8rem;
    font-weight: 500;
}

.form-input-compact {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: var(--transition);
    background: #fff;
}

.form-input-compact:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.quantity-selector-compact {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: visible;
    height: 30px;
    position: relative;
    z-index: 2;
}

.quantity-btn-compact {
    background: #f8f9fa;
    border: none;
    width: 24px;
    height: 100%;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    pointer-events: auto;
    touch-action: manipulation;
    user-select: none;
    font-weight: 700;
}

.quantity-selector-compact .quantity-btn-compact:first-child {
    border-right: 1px solid #ddd;
}
.quantity-selector-compact .quantity-btn-compact:last-child {
    border-left: 1px solid #ddd;
}

.quantity-btn-compact:hover {
    background: #e9ecef;
    color: #333;
}

.quantity-input-compact {
    border: none;
    width: 40px;
    height: 100%;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    background: #fff;
    padding: 0;
}

.quantity-input-compact:focus {
    outline: none;
}

/* 紧凑购买按钮 */
.btn-buy-compact {
    background: linear-gradient(135deg, #1e7e34, #1aa179);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-buy-compact:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    transform: translateY(-1px);
}

.btn-buy-compact:active {
    transform: translateY(0);
}

.btn-buy-compact i {
    font-size: 0.9rem;
}

.purchase-form {
    /* 🎯 精确对齐 - 统一内边距 */
    padding: 16px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.form-group {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-group-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.form-label-compact {
    margin-bottom: 0;
    white-space: nowrap;
}

.form-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.8rem;
    line-height: 1.3;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: var(--transition);
    background: #fafafa;
    line-height: 1.3;
    box-sizing: border-box;
}

/* 单卡片三栏布局 - 彻底解决对齐问题 */
.unified-product-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.product-three-columns {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    min-height: 280px;
    position: relative;
}

/* 三栏分割线 */
.product-three-columns::before,
.product-three-columns::after {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #e9ecef, transparent);
}

.product-three-columns::before {
    left: 280px;
}

.product-three-columns::after {
    right: 320px;
}

/* 左侧图片栏 */
.product-image-column {
    padding: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.image-container {
    width: 100%;
    max-width: 200px;
}

.product-main-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.product-image-text {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    padding: 0 10px;
    line-height: 1.3;
}

/* 中间信息栏 */
.product-info-column {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.4;
    word-wrap: break-word;
}

.product-stock-status {
    margin-bottom: 16px;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: #e8f5e8;
    color: #28a745;
    border: 1px solid #d4edda;
}

.stock-badge.in-stock i {
    font-size: 0.9rem;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 0.9rem;
    padding: 3px 0;
}

.feature-item i {
    color: #28a745;
    font-size: 0.8rem;
    width: 14px;
    text-align: center;
}

.product-stats {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    color: #666;
    font-size: 0.85rem;
}

.stat-value {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 右侧购买栏 */
.product-purchase-column {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.purchase-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.price-section {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.current-price {
    margin-bottom: 8px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #e74c3c;
    letter-spacing: -0.5px;
    line-height: 1;
}

.original-price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #666;
}

.original-price .price-label {
    color: #666;
}

.original-price .price-value {
    color: #666;
    text-decoration: line-through;
}

.purchase-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-group-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.form-label-compact {
    margin-bottom: 0;
    white-space: nowrap;
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.85rem;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f9fa;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #e9ecef;
    color: #333;
}

.quantity-input {
    width: 50px;
    height: 32px;
    border: none;
    text-align: center;
    font-weight: 500;
    background: white;
    border-radius: 0;
    padding: 0;
}

.quantity-input:focus {
    box-shadow: none;
    border: none;
}

.email-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-input-group .form-input {
    flex: 1;
}

.email-verify-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #007bff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-verify-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.form-help-text {
    margin-top: 4px;
    font-size: 0.75rem;
    color: #666;
    line-height: 1.3;
}

.btn-buy {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    border: none;
    padding: 12px 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 8px;
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-buy:hover {
    background: linear-gradient(90deg, #229954 0%, #1e7e34 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* 商品详情区域 */
.product-detail-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.detail-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.detail-body {
    padding: 24px;
    line-height: 1.6;
    color: #555;
}

.detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-three-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .product-three-columns::before,
    .product-three-columns::after {
        display: none;
    }
    
    .product-image-column,
    .product-info-column,
    .product-purchase-column {
        padding: 20px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .product-image-column {
        border-bottom: 1px solid #e9ecef;
    }
    
    .product-info-column {
        background: white;
    }
    
    .product-purchase-column {
        border-bottom: none;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    }
    
    .image-container {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .price-amount {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .unified-product-card {
        margin: 0 -15px 20px -15px;
        border-radius: 0;
    }
    
    .product-image-column,
    .product-info-column,
    .product-purchase-column {
        padding: 16px;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .price-amount {
        font-size: 1.6rem;
    }
    
    .detail-header,
    .detail-body {
        padding: 16px;
    }
}

.form-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
    outline: none;
    background: white;
}

.form-help {
    display: block;
    font-size: 0.7rem;
    color: #666;
    margin-top: 3px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #fafafa;
    height: 30px;
    flex-shrink: 0;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.qty-input {
    flex: 1;
    height: 30px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    background: transparent;
}

.qty-input:focus {
    outline: none;
}

.btn-purchase {
    width: 100%;
    padding: 12px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-purchase:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* 商品详情描述区域 */
.product-description-section {
    padding: 40px 0;
}

.description-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 40px;
}

.description-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.description-content {
    line-height: 1.8;
    color: #555;
}

.description-content p {
    margin-bottom: 15px;
}

.description-content ul,
.description-content ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.description-content li {
    margin-bottom: 8px;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .product-detail-grid {
        grid-template-columns: 260px 1fr 300px;
        gap: 20px;
    }
    
    .product-title {
        font-size: 1.05rem;
    }
    
    .price-amount {
        font-size: 1.6rem;
    }
}

@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .product-image-col,
    .product-purchase-col {
        position: static;
    }
    
    .product-image-card {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .purchase-card {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .product-info-card {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .product-detail-section {
        padding: 20px 0;
    }
    
    .product-detail-grid {
        gap: 15px;
    }
    
    .product-image-card {
        max-width: 280px;
    }
    
    .product-main-image,
    .product-image-placeholder {
        height: 200px;
    }
    
    .product-info-card {
        padding: 15px;
    }
    
    .product-title {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .product-stock-status {
        margin-bottom: 8px;
    }
    
    .product-features {
        gap: 4px;
        margin-bottom: 8px;
    }
    
    .feature-item {
        font-size: 0.75rem;
        padding: 1px 0;
    }
    
    .product-stats {
        padding-top: 8px;
    }
    
    .purchase-card {
        padding: 15px;
    }
    
    .price-section {
        padding: 12px;
    }
    
    .price-amount {
        font-size: 1.4rem;
    }
    
    .purchase-form {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-label {
        font-size: 0.75rem;
        margin-bottom: 3px;
    }
    
    .form-input {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .form-help {
        font-size: 0.65rem;
        margin-top: 2px;
    }
    
    .quantity-selector {
        height: 28px;
    }
    
    .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .qty-input {
        height: 28px;
        font-size: 0.8rem;
    }
    
    .btn-purchase {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .product-image-placeholder {
        font-size: 2.5rem;
    }
    
    .product-info-card {
        padding: 18px;
    }
    
    .product-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .stock-badge {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .feature-item {
        font-size: 0.85rem;
    }
    
    .price-section {
        padding: 18px;
    }
    
    .purchase-form {
        padding: 18px;
    }
    
    .price-amount {
        font-size: 1.6rem;
    }
    
    .btn-purchase {
        font-size: 0.95rem;
        padding: 10px;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    /* 移动端英雄区域紧凑化 */
    .hero-section {
        padding: 25px 0 25px;
    }
    
    .hero-section .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 15px;
        margin-bottom: 5px;
    }
    
    /* 搜索框紧凑化 */
    .app-search {
        max-width: 240px;
        margin: 10px auto;
    }
    
    .app-search input {
        padding: 8px 35px 8px 15px;
        font-size: 0.85rem;
    }
    
    .search-icon {
        right: 10px;
        font-size: 0.85rem;
    }
    
    /* 页眉紧凑化 */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar {
        padding: 0.5rem 0.5rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }
    
    /* 搜索容器横向空间优化 */
    .search-container-mobile {
        padding: 15px 10px;
    }
    
    .search-container-mobile .container {
        padding: 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* 公告区标题移动端优化 */
    .notice-section .section-title {
        font-size: 1.3rem;
        padding: 0 10px;
        line-height: 1.4;
    }
    
    /* 公告内容紧凑化 */
    .notice-box {
        padding: 20px 15px;
        margin: 0 10px;
        background: #ffffff;
    }
    
    .notice-content {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* 整体间距紧凑化 */
    .notice-section {
        padding: 15px 0;
        background: #e9ecef;
    }
    
    .products-section {
        padding: 20px 0;
    }
    
    .process-section {
        padding: 20px 0;
    }
    
    .blog-section {
        padding: 20px 0;
    }
    
    /* 产品区域标题紧凑化 */
    .products-section .section-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    /* 流程区域标题紧凑化 */
    .process-section .section-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    /* 博客区域标题紧凑化 */
    .blog-section .section-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .products-grid,
    .account-types-grid,
    .advantages-grid,
    .process-steps,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .error-title {
        font-size: 4rem;
    }
    
    .error-subtitle {
        font-size: 1.5rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 15px;
    }
    
    .navbar-nav .nav-link {
        margin: 5px 0;
        padding: 10px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 25px 0 20px;
    }
    
    .hero-section .container {
        padding: 0 8px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 8px;
    }
    
    /* 超小设备优化 */
    .app-search {
        max-width: 220px;
    }
    
    .notice-section .section-title {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .product-price .price {
        font-size: 1.3rem;
    }
    
    .account-type-card,
    .advantage-card {
        padding: 20px;
    }
    
    .type-icon,
    .advantage-icon {
        font-size: 2.5rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* 打印样式 */
@media print {
    .header,
    .footer,
    .back-to-top,
    .navbar,
    .breadcrumb-nav {
        display: none !important;
    }
    
    .main-content {
        min-height: auto;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* 订单查询页样式 */
.order-search-section {
    padding: 24px 0;
}

.order-search-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    padding: 24px;
    max-width: 720px;
    margin: 0 auto;
}

.order-search-header h1 {
    font-size: 1.25rem;
    margin: 0 0 8px 0;
    color: var(--dark-color);
}

.order-search-subtitle {
    margin: 0 0 16px 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.order-search-form .form-label {
    font-weight: 600;
    color: #2c3e50;
}

.order-search-form .form-text {
    color: #6c757d;
}

.order-search-submit {
    width: 100%;
    font-weight: 600;
}

@media (max-width: 576px) {
    .order-search-card {
        padding: 18px;
        border-radius: 8px;
    }
    .order-search-header h1 {
        font-size: 1.1rem;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #0000ff;
        --accent-color: #008000;
        --danger-color: #cc0000;
    }
    
    .btn-primary,
    .btn-success {
        border: 2px solid currentColor;
    }
    
    .form-control {
        border-width: 2px;
    }
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .back-to-top {
        transition: none;
    }
}

/* iPhone SE等小屏设备优化 */
@media (max-width: 375px) {
    .hero-section {
        padding: 20px 0 15px;
    }
    
    .hero-section .container {
        padding: 0 5px;
    }
    
    .hero-title {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        padding: 0 5px;
    }
    
    .app-search {
        max-width: 200px;
        margin: 12px auto 0;
    }
    
    .app-search input {
        padding: 6px 30px 6px 12px;
        font-size: 0.8rem;
    }
    
    .search-icon {
        right: 8px;
        font-size: 0.8rem;
    }
    
    .search-container-mobile {
        padding: 8px 5px;
    }
    
    .navbar {
        padding: 0.5rem 0.25rem;
    }
    
    .notice-section .section-title {
        font-size: 1rem;
        padding: 0 5px;
    }
}
/* 订单详情页样式 */
.order-info-section { padding: 24px 0; }
.order-info-header h1 { font-size: 1.25rem; margin: 0 0 16px; color: var(--dark-color); }
.order-info-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    padding: 20px;
    margin-bottom: 16px;
}
.order-info-top { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-bottom: 12px; }
.order-sn { font-weight: 600; color: #2c3e50; }
.order-status { color: #6c757d; }
.order-info-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; }
.order-info-grid.single { grid-template-columns: 1fr; }
.order-actions { text-align: center; margin-top: 8px; }
.order-actions .btn { min-width: 180px; font-weight: 600; }

.error-page { min-height: 60vh; display: flex; align-items: center; padding: 80px 0; background: #f8f9fa; }
.error-content { max-width: 600px; margin: 0 auto; }
.error-icon { font-size: 4rem; color: #f39c12; margin-bottom: 30px; }
.error-title { font-size: 2rem; font-weight: 700; color: #2c3e50; margin-bottom: 10px; }
.error-subtitle { font-size: 1.2rem; color: #333; margin-bottom: 20px; }
.error-message { font-size: 1rem; color: #666; margin-bottom: 24px; }
.error-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.error-actions .btn { padding: 10px 24px; border-radius: 8px; }
.error-actions .btn:hover { transform: translateY(-2px); }
.order-info-list { margin: 0; }
.order-info-item { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #f0f0f0; }
.order-info-item dt { color: #6c757d; }
.order-info-item dd { margin: 0; font-weight: 600; color: #2c3e50; }
.order-kami-title { font-size: 1rem; margin-bottom: 8px; }
.textarea-kami { resize: none; }
.kami-btn { margin-top: 8px; }

@media (max-width: 768px) {
  .order-info-grid { grid-template-columns: 1fr; }
}
/* 文章列表与详情样式 */
.article-section { padding: 24px 0; }
.article-header h1 { font-size: 1.25rem; margin: 0 0 12px; color: var(--dark-color); }
.article-list { list-style: none; padding: 0; margin: 0; border: 1px solid #e9ecef; border-radius: 12px; overflow: hidden; background: #fff; }
.article-list-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }
.article-list-item:last-child { border-bottom: none; }
.article-link { color: #2c3e50; text-decoration: none; font-weight: 600; }
.article-link:hover { color: var(--primary-color); }
.article-date { color: #6c757d; font-size: 0.85rem; }
.article-pagination { margin-top: 16px; }

.article-detail-header h1 { font-size: 1.5rem; margin: 0 0 8px; color: var(--dark-color); }
.article-meta { color: #6c757d; }
.article-content-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 16px; }
.article-content-wrap.single { display: block; }
.article-toc { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px; padding: 12px; }
.article-content { background: #fff; border: 1px solid #e9ecef; border-radius: 8px; padding: 16px; }
.article-lead { background: transparent; border: none; border-radius: 0; padding: 0; margin-bottom: 12px; color: inherit; }
/* 单栏布局不显示侧边与底部区块 */

@media (max-width: 992px) {
  .article-content-wrap { grid-template-columns: 1fr; }
}
/* 目录折叠 */
.toc-collapsible { border: 1px solid #e9ecef; border-radius: 8px; background: #f8f9fa; margin-bottom: 16px; }
.toc-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; }
.toc-header span { font-weight: 600; color: #2c3e50; }
.toc-toggle { border: none; background: transparent; color: #6c757d; font-size: 0.95rem; line-height: 1; padding: 6px; border-radius: 6px; }
.toc-toggle:hover { color: #2c3e50; }

/* 文章内容中的媒体响应式处理，避免移动端横向滚动 */
.article-content img,
.article-content video,
.article-content iframe {
  max-width: 100%;
  height: auto;
  display: block;
}
.article-content figure,
.article-content .wp-block-image {
  margin: 0;
}
.article-content table {
  width: 100%;
  display: block;
  overflow-x: auto;
}
.article-content pre,
.article-content code {
  white-space: pre-wrap;
  word-break: break-word;
}
@media (max-width: 576px) {
  .article-content img { width: 100%; }
}
.toc-body { padding: 8px 12px; border-top: 1px solid #e9ecef; }
.toc-collapsible.collapsed .toc-body { display: none; }
.article-content h2, .article-content h3 { scroll-margin-top: 90px; }
/* 文章正文标题与文本的协调样式 */
.article-content h2 {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  color: #333;
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1rem;
  margin-bottom: 0.6rem;
  color: #333;
}

.article-content p { margin-bottom: 0.9rem; }
.article-content ul, .article-content ol { margin: 0.6rem 0 0.9rem 1.25rem; }

@media (max-width: 576px) {
  .article-content h2 { font-size: 1.3rem; }
  .article-content h3 { font-size: 1.1rem; }
}
.toc-collapsible.collapsed .toc-toggle i { transform: rotate(180deg); }
