/* 非遗文化主题样式 - 中国红 · 墨韵 · 宣纸 · 琉璃金 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'STKaiti', 'KaiTi', '楷体', 'STSong', 'SimSun', 'Songti SC', 'Source Han Serif SC', 'Noto Serif CJK SC', 'Microsoft YaHei', serif;
    line-height: 1.7;
    color: #2b2118;
    background-color: #f5ebd8;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(200, 16, 46, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(201, 162, 39, 0.04) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(139, 69, 19, 0.015) 2px, rgba(139, 69, 19, 0.015) 4px);
}

.w-100 img{
	max-width: 100%;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 导航栏 ========== */
.navbar {
    background: linear-gradient(180deg, #8b1a1a 0%, #a01c1c 50%, #8b1a1a 100%);
    box-shadow: 0 4px 20px rgba(139, 26, 26, 0.35);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
    border-bottom: 3px solid #c9a227;
    border-top: 3px solid #c9a227;
    position: sticky;
}

.navbar::before,
.navbar::after {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c9a227 20%, #c9a227 80%, transparent);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px;
}

.nav-brand h1 {
    color: #f5ebd8;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4), 0 0 1px #c9a227;
    position: relative;
    padding-left: 28px;
}

.nav-brand h1::before {
    content: '卐';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    color: #c9a227;
    font-size: 1.2rem;
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.4rem;
    align-items: center;
}

.btn{
	background: linear-gradient(180deg, #c9a227 0%, #a8861c 100%);
	border-radius: 4px;
	font-weight: 600;
	padding: 8px 18px;
	color: #2b2118 !important;
	border: 1px solid #8b6914;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
	text-shadow: none;
}

.btn:hover {
	background: linear-gradient(180deg, #e0b82e 0%, #c9a227 100%);
	box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.nav-menu a {
    color: #f5ebd8;
    text-decoration: none;
    padding: 8px 14px;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
    font-weight: 500;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
    letter-spacing: 0.08em;
    font-size: 1.02rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(201, 162, 39, 0.2);
    color: #ffd966;
    text-shadow: 0 0 8px rgba(255, 217, 102, 0.5);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 14px;
    width: calc(100% - 28px);
    height: 2px;
    background: #c9a227;
    box-shadow: 0 0 6px #c9a227;
}

/* ========== Banner ========== */
.banner {
    background:
        linear-gradient(135deg, rgba(26, 18, 12, 0.75) 0%, rgba(139, 26, 26, 0.65) 100%),
        url('../images/banner.jpg') center/cover no-repeat;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5ebd8;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    border-bottom: 6px double #c9a227;
}

.banner::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(201, 162, 39, 0.4);
    pointer-events: none;
}

.banner::after {
    content: '';
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(201, 162, 39, 0.2);
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 1;
    padding: 30px 50px;
    background: rgba(26, 18, 12, 0.4);
    border: 2px solid #c9a227;
    box-shadow: 0 0 30px rgba(201, 162, 39, 0.3), inset 0 0 30px rgba(0,0,0,0.3);
}

.banner-content h2 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #f5ebd8;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 20px rgba(201, 162, 39, 0.4);
}

.banner-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #ffd966;
}

/* ========== 按钮 ========== */
.btn-primary, .btn-secondary, .btn-buy {
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.1em;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
}

.btn-primary {
    background: linear-gradient(180deg, #c8102e 0%, #8b1a1a 100%);
    color: #f5ebd8;
    box-shadow: 0 2px 8px rgba(139, 26, 26, 0.4);
    border: 1px solid #c9a227;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #d92040 0%, #a01c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 26, 26, 0.5);
}

.btn-secondary {
    background: linear-gradient(180deg, #c9a227 0%, #a8861c 100%);
    color: #2b2118;
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.3);
    border: 1px solid #8b6914;
}

.btn-secondary:hover {
    background: linear-gradient(180deg, #e0b82e 0%, #c9a227 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 162, 39, 0.5);
}

.btn-buy {
    background: linear-gradient(180deg, #c8102e 0%, #8b1a1a 100%);
    color: #f5ebd8;
    padding: 14px 36px;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.4);
    border: 1px solid #c9a227;
}

.btn-buy:hover {
    background: linear-gradient(180deg, #d92040 0%, #a01c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.5);
}

/* ========== 热门商品区 ========== */
.featured-products {
    padding: 4rem 0;
    background:
        linear-gradient(rgba(245, 235, 216, 0.92), rgba(245, 235, 216, 0.92)),
        repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(139, 26, 26, 0.04) 30px, rgba(139, 26, 26, 0.04) 31px);
    position: relative;
}

.featured-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #c9a227, #8b1a1a, #c9a227, transparent);
}

.featured-products::after {
    content: '非 遗 之 韵';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #8b1a1a;
    font-size: 0.9rem;
    letter-spacing: 0.5em;
    padding-left: 0.5em;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
    color: rgba(139, 26, 26, 0.35);
}

/* ========== 商品卡片 ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.product-card {
    background: linear-gradient(180deg, #fdf8ec 0%, #f5ebd8 100%);
    border-radius: 6px;
    padding: 1.8rem;
    box-shadow: 0 4px 16px rgba(43, 33, 24, 0.15);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #c9a227;
    position: relative;
}

.product-card::before,
.product-card::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid #8b1a1a;
}

.product-card::before {
    top: 4px;
    left: 4px;
    border-right: none;
    border-bottom: none;
}

.product-card::after {
    bottom: 4px;
    right: 4px;
    border-left: none;
    border-top: none;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(139, 26, 26, 0.25);
    border-color: #8b1a1a;
    background: linear-gradient(180deg, #fffaf0 0%, #f5ebd8 100%);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.2rem;
    border: 1px solid #c9a227;
    padding: 4px;
    background: #fdf8ec;
}

.product-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #2b2118;
    font-weight: 600;
    line-height: 1.5;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
    letter-spacing: 0.05em;
}

.product-card .description {
    color: #6b5d4a;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.price {
    font-size: 1.7rem;
    font-weight: 700;
    color: #c8102e;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
    text-shadow: 0 1px 0 rgba(201, 162, 39, 0.3);
    position: relative;
    display: inline-block;
    padding: 0 12px;
}

.price::before,
.price::after {
    content: '◆';
    color: #c9a227;
    font-size: 0.7em;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.price::before { left: -4px; }
.price::after { right: -4px; }

.product-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* ========== 商品详情 ========== */
.product-detail {
    padding: 3rem 0;
    background:
        linear-gradient(rgba(245, 235, 216, 0.92), rgba(245, 235, 216, 0.92)),
        repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(139, 26, 26, 0.04) 30px, rgba(139, 26, 26, 0.04) 31px);
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: linear-gradient(180deg, #fdf8ec 0%, #f5ebd8 100%);
    border-radius: 6px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(43, 33, 24, 0.15);
    border: 1px solid #c9a227;
    position: relative;
}

.product-images img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #c9a227;
    padding: 6px;
    background: #fdf8ec;
}

.product-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
    color: #2b2118;
    font-weight: 700;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
    letter-spacing: 0.08em;
    border-bottom: 2px solid #c9a227;
    padding-bottom: 12px;
}

.merchant-info, .product-description {
    margin: 2rem 0;
    padding: 1.75rem;
    background: rgba(253, 248, 236, 0.7);
    border-radius: 4px;
    border: 1px solid #c9a227;
    border-left: 4px solid #8b1a1a;
}

.merchant-info h4, .product-description h4 {
    color: #8b1a1a;
    margin-bottom: 1.25rem;
    font-weight: 700;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
    letter-spacing: 0.1em;
    font-size: 1.15rem;
    border-bottom: 1px dashed #c9a227;
    padding-bottom: 8px;
}

.product-description ul {
    list-style: none;
    padding-left: 0;
}

.product-description li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(201, 162, 39, 0.4);
    color: #2b2118;
}

.product-description li:last-child {
    border-bottom: none;
}

/* ========== 表单 ========== */
.auth-section, .merchant-section {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
    background:
        linear-gradient(rgba(245, 235, 216, 0.92), rgba(245, 235, 216, 0.92)),
        repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(139, 26, 26, 0.04) 30px, rgba(139, 26, 26, 0.04) 31px);
}

.auth-form, .application-form {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: linear-gradient(180deg, #fdf8ec 0%, #f5ebd8 100%);
    padding: 2.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(43, 33, 24, 0.2);
    border: 1px solid #c9a227;
    position: relative;
}

.auth-form::before,
.auth-form::after,
.application-form::before,
.application-form::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid #8b1a1a;
}

.auth-form::before, .application-form::before {
    top: 6px; left: 6px;
    border-right: none; border-bottom: none;
}

.auth-form::after, .application-form::after {
    bottom: 6px; right: 6px;
    border-left: none; border-top: none;
}

.auth-form h2, .application-form h3 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #2b2118;
    font-weight: 700;
    font-size: 2rem;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
    letter-spacing: 0.15em;
    border-bottom: 2px solid #c9a227;
    padding-bottom: 16px;
    position: relative;
}

.auth-form h2::after, .application-form h3::after {
    content: '印';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #c8102e;
    color: #f5ebd8;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid #8b1a1a;
    border-radius: 2px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2b2118;
    font-size: 0.95rem;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
    letter-spacing: 0.08em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #c9a227;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fdf8ec;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
    color: #2b2118;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b1a1a;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
    background: #fffaf0;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.forgot-password {
    color: #8b1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
}

.forgot-password:hover {
    color: #c8102e;
    text-decoration: underline;
}

.auth-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #c9a227;
}

.auth-links a {
    color: #8b1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
}

.auth-links a:hover {
    color: #c8102e;
    text-decoration: underline;
}

/* ========== 协议 ========== */
.agreement-section {
    background: linear-gradient(180deg, #fdf8ec 0%, #f5ebd8 100%);
    padding: 2.5rem;
    border-radius: 6px;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(43, 33, 24, 0.15);
    border: 1px solid #c9a227;
}

.agreement-content {
    overflow-y: auto;
    padding: 1.5rem;
    border: 1px solid #c9a227;
    border-radius: 4px;
    background: #fdf8ec;
}

.agreement-content h4 {
    color: #8b1a1a;
    margin: 1.25rem 0 0.75rem 0;
    font-weight: 700;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
    letter-spacing: 0.08em;
    border-left: 4px solid #c9a227;
    padding-left: 12px;
}

.agreement-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* ========== 购物车 ========== */
.cart-section {
    padding: 3rem 0;
    background:
        linear-gradient(rgba(245, 235, 216, 0.92), rgba(245, 235, 216, 0.92)),
        repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(139, 26, 26, 0.04) 30px, rgba(139, 26, 26, 0.04) 31px);
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.cart-items {
    background: linear-gradient(180deg, #fdf8ec 0%, #f5ebd8 100%);
    border-radius: 6px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(43, 33, 24, 0.15);
    border: 1px solid #c9a227;
}

.cart-item {
    display: grid;
    grid-template-columns: 50px 100px 2fr 1fr 1fr 1fr 80px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px dashed #c9a227;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #c9a227;
    padding: 2px;
    background: #fdf8ec;
}

.item-info h4 {
    margin-bottom: 0.5rem;
    color: #2b2118;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
}

.item-description {
    color: #6b5d4a;
    font-size: 0.9rem;
}

.merchant {
    color: #8b1a1a;
    font-size: 0.8rem;
    font-style: italic;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #c9a227;
    background: #fdf8ec;
    border-radius: 4px;
    cursor: pointer;
    color: #8b1a1a;
    font-weight: 700;
}

.quantity-btn:hover {
    background: #c9a227;
    color: #fdf8ec;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #c9a227;
    border-radius: 4px;
    padding: 5px;
    background: #fdf8ec;
}

.btn-delete {
    background: linear-gradient(180deg, #c8102e 0%, #8b1a1a 100%);
    color: #f5ebd8;
    border: 1px solid #8b1a1a;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-delete:hover {
    background: linear-gradient(180deg, #d92040 0%, #a01c1c 100%);
}

.cart-summary {
    background: linear-gradient(180deg, #fdf8ec 0%, #f5ebd8 100%);
    border-radius: 6px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(43, 33, 24, 0.15);
    border: 1px solid #c9a227;
    height: fit-content;
}

.summary-header h3 {
    margin-bottom: 1.5rem;
    color: #2b2118;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
    border-bottom: 2px solid #c9a227;
    padding-bottom: 10px;
    letter-spacing: 0.1em;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(201, 162, 39, 0.5);
    color: #2b2118;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.2rem;
    color: #c8102e;
    border-bottom: none;
    border-top: 2px solid #c9a227;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
}

.summary-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-continue {
    background: linear-gradient(180deg, #c9a227 0%, #a8861c 100%);
    color: #2b2118;
    border: 1px solid #8b6914;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
    letter-spacing: 0.1em;
}

.btn-continue:hover {
    background: linear-gradient(180deg, #e0b82e 0%, #c9a227 100%);
}

/* ========== 页脚 ========== */
.footer {
    background:
        linear-gradient(180deg, #1a120c 0%, #2b1a12 50%, #1a120c 100%);
    color: #f5ebd8;
    text-align: center;
    padding: 3rem 0;
    margin-top: 0;
    border-top: 4px double #c9a227;
    position: relative;
}

.footer::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c9a227 20%, #c9a227 80%, transparent);
    margin-bottom: 20px;
}

.footer p {
    color: #c9a227;
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.footer a{
	color: #d1c5a8;
	line-height: 30px;
	display: block;
	text-decoration: none;
	font-size: 0.95rem;
	transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffd966;
    text-decoration: underline;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-menu {
        margin-top: 1rem;
        gap: 0.3rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu a {
        font-size: 0.9rem;
        padding: 6px 10px;
    }

    .banner-content h2 {
        font-size: 1.8rem;
        letter-spacing: 0.1em;
    }

    .banner-content {
        padding: 20px 25px;
        margin: 0 15px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
    }

    .item-quantity {
        justify-content: center;
    }

    .featured-products::after {
        font-size: 0.7rem;
        letter-spacing: 0.3em;
    }
}

/* ========== 默认图片 ========== */
img[src*="default-product.jpg"] {
    background: #f0e6d2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b6914;
    font-size: 0.8rem;
    border: 1px dashed #c9a227;
}
