/* ============================================
   北京桐襄科技有限公司 - 企业网站样式
   色调：浅灰蓝色
   ============================================ */

/* ===== CSS 变量 ===== */
:root {
    --primary: #4A6FA5;
    --primary-dark: #2C4A6E;
    --primary-light: #7B9EC4;
    --primary-lighter: #A8C0DA;
    --bg: #EEF2F7;
    --bg-light: #F5F8FB;
    --bg-white: #FFFFFF;
    --text: #2D3748;
    --text-secondary: #4A5568;
    --text-light: #718096;
    --text-muted: #A0AEC0;
    --border: #D6E0EC;
    --shadow: 0 2px 12px rgba(74, 111, 165, 0.08);
    --shadow-hover: 0 8px 30px rgba(74, 111, 165, 0.15);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

/* ===== 重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 导航栏 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--border);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

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

.nav-menu a {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: var(--bg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero 区域 ===== */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #E8EEF5 0%, #D5E0ED 50%, #C3D2E3 100%);
    overflow: hidden;
    padding-top: 70px;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 111, 165, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123, 158, 196, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(74, 111, 165, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.6rem;
    line-height: 1.3;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 111, 165, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== 通用 Section ===== */
.section {
    padding: 80px 0;
}

.section-light {
    background: var(--bg-light);
}

.section-gray {
    background: var(--bg);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
    font-weight: 700;
}

.section-header .subtitle {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.section-header .divider {
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    margin: 16px auto 0;
}

/* ===== 特性卡片网格 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-lighter);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--bg), var(--bg-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== 统计区 ===== */
.stats {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.stat-item .stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== 服务列表 ===== */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    gap: 20px;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.service-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--bg);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.service-item h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.service-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.service-tags span {
    padding: 3px 10px;
    background: var(--bg);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.78rem;
}

/* ===== 关于我们内容 ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.about-text h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.9;
}

.about-text .highlight {
    color: var(--primary);
    font-weight: 600;
}

.about-visual {
    position: relative;
}

.about-visual-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 40px;
    color: #fff;
    box-shadow: var(--shadow-hover);
}

.about-visual-card h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.about-visual-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.about-visual-card ul li:last-child {
    border-bottom: none;
}

.about-visual-card ul li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== 发展历程 ===== */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: var(--primary);
    border: 3px solid var(--bg-light);
    border-radius: 50%;
    z-index: 2;
}

.timeline-content {
    width: 45%;
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.timeline-content .year {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== 企业文化 ===== */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.culture-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.culture-card:hover {
    border-color: var(--primary-lighter);
    transform: translateY(-4px);
}

.culture-card .culture-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--bg);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.culture-card h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.culture-card p {
    font-size: 0.88rem;
    color: var(--text-light);
}

/* ===== 联系我们 ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.contact-detail {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    background: var(--bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-detail-text h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 4px;
    font-weight: 500;
}

.contact-detail-text p {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}

/* QR Code Section */
.qr-code-section {
    flex-wrap: wrap;
    margin-top: 8px;
}

.qr-code-section .contact-detail-text {
    flex: 1;
}

/* 在线支付入口（contact.html） */
.pay-entry {
    margin-top: 14px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pay-entry-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.pay-entry-btn:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: var(--shadow-hover);
}

.pay-entry-wechat {
    background: #09BB07;
}

.pay-entry-wechat:hover {
    background: #079c06;
}

.pay-entry-alipay {
    background: #1677FF;
}

.pay-entry-alipay:hover {
    background: #0e5fd8;
}

.contact-form {
    background: var(--bg-white);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-light);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: none;
}

.form-message.success {
    background: #E6F4EA;
    color: #1B7A3E;
    display: block;
}

.form-message.error {
    background: #FDE8E8;
    color: #C53030;
    display: block;
}

/* ===== CTA 区域 ===== */
.cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 60px 0;
    text-align: center;
}

.cta h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 12px;
}

.cta p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
    font-size: 1rem;
}

.cta .btn-primary {
    background: #fff;
    color: var(--primary-dark);
}

.cta .btn-primary:hover {
    background: var(--bg-light);
}

/* ===== 页脚 ===== */
.footer {
    background: #1A2935;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
}

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

.footer-col ul li a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.footer-icp {
    margin-top: 6px;
}

.footer-icp a {
    text-decoration: none;
}

/* ===== 页面横幅 ===== */
.page-banner {
    background: linear-gradient(135deg, #D5E0ED, #C3D2E3);
    padding: 130px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: "";
    position: absolute;
    top: 20%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 111, 165, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.page-banner h1 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    position: relative;
    z-index: 2;
}

.page-banner .breadcrumb {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

.page-banner .breadcrumb a:hover {
    color: var(--primary);
}

/* ===== 滚动动画 ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-hover);
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ============================================
   在线收银台（checkout.html）
   ============================================ */

.checkout-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 32px;
    align-items: start;
}

.checkout-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.checkout-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 28px;
    font-weight: 700;
}

.checkout-title svg {
    color: var(--primary);
    flex-shrink: 0;
}

.checkout-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* 数量步进器 */
.qty-stepper {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
}

.qty-stepper button {
    width: 44px;
    border: none;
    background: var(--bg);
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.qty-stepper button:hover {
    background: var(--primary);
    color: #fff;
}

.qty-stepper input {
    flex: 1;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: transparent;
    padding: 10px 0;
    -moz-appearance: textfield;
}

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

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 订单摘要 */
.pay-summary {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 24px;
}

.pay-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.92rem;
    color: var(--text-light);
}

.pay-summary-row span:last-child {
    color: var(--text);
    font-weight: 500;
    text-align: right;
}

.pay-summary-total {
    border-top: 1px dashed var(--border);
    margin-top: 6px;
    padding-top: 14px;
}

.pay-summary-total span:first-child {
    color: var(--text-secondary);
    font-weight: 600;
}

.pay-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #D97706;
}

.pay-amount em {
    font-style: normal;
}

/* 支付方式选择 */
.pay-methods-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 10px;
}

.pay-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.pay-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    background: var(--bg-light);
}

.pay-method:hover {
    border-color: var(--primary-lighter);
}

.pay-method.selected {
    border-color: var(--primary);
    background: rgba(74, 111, 165, 0.05);
}

.pay-method input {
    display: none;
}

.pay-method-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pay-icon-wechat {
    background: #09BB07;
}

.pay-icon-alipay {
    background: #1677FF;
}

.pay-method-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pay-method-text strong {
    font-size: 1rem;
    color: var(--text);
}

.pay-method-text small {
    font-size: 0.8rem;
    color: var(--text-light);
}

.pay-method-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    position: relative;
    transition: var(--transition);
}

.pay-method.selected .pay-method-check {
    border-color: var(--primary);
    background: var(--primary);
}

.pay-method.selected .pay-method-check::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pay-btn {
    width: 100%;
    justify-content: center;
    font-size: 1.05rem;
    padding: 14px 28px;
}

.pay-security {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.pay-security svg {
    flex-shrink: 0;
    color: #1B7A3E;
}

/* ===== 支付弹窗 ===== */
.pay-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.pay-modal.show {
    display: flex;
}

.pay-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(26, 41, 53, 0.6);
    backdrop-filter: blur(4px);
}

.pay-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 28px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: payModalIn 0.25s ease;
}

@keyframes payModalIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pay-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.pay-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
}

.pay-badge-wechat {
    background: #09BB07;
}

.pay-badge-alipay {
    background: #1677FF;
}

.pay-modal-close {
    border: none;
    background: var(--bg);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.pay-modal-close:hover {
    background: #FDE8E8;
    color: #C53030;
}

.pay-qr-amount {
    text-align: center;
    margin-bottom: 18px;
}

.pay-qr-amount span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.pay-qr-amount strong {
    font-size: 1.9rem;
    color: var(--text);
    font-weight: 700;
}

.pay-qr-amount em {
    font-style: normal;
}

.pay-qr-box {
    position: relative;
    width: 224px;
    height: 224px;
    margin: 0 auto;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.pay-qr-box img,
.pay-qr-box canvas {
    display: block;
}

.pay-qr-expired {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.pay-qr-expired p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.pay-qr-tip {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 16px;
}

.pay-qr-tip strong {
    color: var(--primary);
}

.pay-qr-meta {
    margin-top: 18px;
    border-top: 1px dashed var(--border);
    padding-top: 14px;
}

.pay-qr-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
    padding: 4px 0;
}

.pay-qr-meta-row span:last-child {
    color: var(--text);
    font-weight: 500;
    font-family: Consolas, monospace;
}

.pay-qr-status {
    margin-top: 16px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-light);
    padding: 10px;
    background: var(--bg-light);
    border-radius: 8px;
}

.pay-qr-status.ok {
    background: #E6F4EA;
    color: #1B7A3E;
}

.pay-demo-btn {
    width: 100%;
    justify-content: center;
    margin-top: 14px;
    padding: 9px 20px;
    font-size: 0.85rem;
}

/* 支付成功 */
.pay-success-icon {
    width: 72px;
    height: 72px;
    margin: 8px auto 18px;
    background: linear-gradient(135deg, #34D399, #1B7A3E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(27, 122, 62, 0.3);
}

.pay-success-title {
    text-align: center;
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.pay-success-amount {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.pay-success-amount em {
    font-style: normal;
}

.pay-success-tip {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 16px;
    line-height: 1.7;
}

.pay-success-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.pay-success-actions .btn {
    flex: 1;
    justify-content: center;
}

/* ===== 响应式 ===== */
@media (max-width: 968px) {
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

    .checkout-wrapper {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 50px;
    }

    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .nav-menu a {
        width: 100%;
        padding: 12px 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 56px 0;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .container {
        padding: 0 16px;
    }

    .page-banner {
        padding: 110px 0 40px;
    }

    .page-banner h1 {
        font-size: 1.6rem;
    }

    .checkout-card {
        padding: 24px 18px;
    }

    .checkout-card .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pay-success-actions {
        flex-direction: column;
    }
}
