/* 全局变量 */
:root {
    --primary: #ff9ebb;
    --primary-dark: #ff7aa2;
    --secondary: #e63946;
    --bg: #fff8fa;
    --bg-alt: #fff0f5;
    --text: #4a3a40;
    --text-light: #7a6a70;
    --border: #ffd6e4;
    --shadow: 0 4px 12px rgba(255, 122, 162, 0.15);
    --shadow-hover: 0 8px 24px rgba(255, 122, 162, 0.25);
    --radius: 12px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 248, 250, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow);
    background-color: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-dark);
}

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

.nav-link {
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

/* Hero区域 */
.hero {
    padding-top: 64px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-alt) 0%, #ffe6f0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '🐰';
    position: absolute;
    font-size: 300px;
    opacity: 0.05;
    right: -50px;
    bottom: -50px;
    transform: rotate(-15deg);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 1;
}

.hero-title {
    font-size: 56px;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 48px;
}

.hero-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.info-card {
    background-color: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

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

.info-icon {
    font-size: 32px;
}

.info-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.info-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

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

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

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

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 48px;
    color: var(--primary-dark);
}

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

.about-text p {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.tag {
    padding: 6px 16px;
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    color: var(--primary-dark);
}

.mascot-img {
    width: 100%;
    max-width: 340px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    display: block;
    margin: 0 auto;
    border: 3px solid var(--border);
    transition: transform 0.3s ease;
}

.mascot-img:hover {
    transform: scale(1.03) rotate(-1deg);
}

/* 门票与赛事 */
.ticket-announce {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 32px;
    font-size: 17px;
    color: var(--text);
}

.ticket-announce strong {
    color: var(--primary-dark);
}

.ticket-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.ticket-card {
    position: relative;
    flex: 1;
    max-width: 320px;
    min-width: 250px;
    background: white;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    padding: 32px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.ticket-featured {
    border-color: var(--primary);
    background: linear-gradient(160deg, #fff 0%, #fff0f5 100%);
}

.ticket-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.ticket-type {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.ticket-price {
    font-size: 52px;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 16px;
}

.ticket-price span {
    font-size: 20px;
    font-weight: normal;
    color: var(--text-light);
}

.ticket-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px dashed var(--border);
    padding-top: 16px;
}

.ticket-perks li {
    padding: 6px 0;
    font-size: 15px;
    color: var(--text);
}

.ticket-note {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 48px;
}

/* 赛事 */
.battle-section {
    max-width: 820px;
    margin: 0 auto;
}

.battle-title {
    text-align: center;
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.battle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.battle-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.battle-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.battle-card h4 {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 10px;
}

.battle-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 14px;
}

.battle-status {
    display: inline-block;
    font-size: 13px;
    padding: 4px 14px;
    border-radius: 20px;
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
}

.battle-status.battle-full {
    background: #ffebee;
    color: #c62828;
}

.battle-signup {
    text-align: center;
    font-size: 16px;
    color: var(--text);
}

.battle-signup strong {
    color: var(--secondary);
    font-size: 18px;
}

/* 终宣信息 */
.final-announce {
    max-width: 760px;
    margin: 0 auto 28px;
    padding: 32px;
    background: linear-gradient(135deg, #fff 0%, #fff0f5 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.final-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.final-announce p {
    font-size: 17px;
    color: var(--text);
    line-height: 2;
}

.final-announce strong {
    color: var(--secondary);
}

.final-note {
    text-align: center;
    font-size: 18px;
    color: var(--primary-dark);
    font-weight: 500;
}

/* THP诗意引文 */
.thp-poem {
    text-align: center;
    margin-bottom: 32px;
    padding: 28px 24px;
    background: linear-gradient(135deg, #fff0f5 0%, #ffe6f0 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.thp-poem p {
    font-size: 17px;
    color: var(--primary-dark);
    line-height: 2.1;
    font-weight: 500;
    margin-bottom: 0;
}

/* THP特色 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background-color: white;
    padding: 32px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

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

.feature-card p {
    color: var(--text-light);
}

/* 摊位信息 */
.booth-highlight {
    text-align: center;
    margin-bottom: 40px;
}

.booth-number {
    font-size: 24px;
    margin-bottom: 16px;
}

.booth-number span {
    font-size: 32px;
    font-weight: bold;
    color: var(--secondary);
    background-color: #ffe6e6;
    padding: 8px 24px;
    border-radius: var(--radius);
    margin-left: 12px;
}

.goods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.goods-card {
    background-color: white;
    padding: 32px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

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

.goods-img {
    font-size: 64px;
    margin-bottom: 16px;
}

.goods-card h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.goods-card p {
    color: var(--text-light);
}

.tip-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 24px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

/* 联系方式 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.contact-card {
    background-color: white;
    padding: 32px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

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

.contact-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 8px;
}

/* 页脚 */
.footer {
    background-color: #3a2a30;
    color: #ffd6e4;
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 8px;
}

.footer-small {
    font-size: 14px;
    opacity: 0.7;
    font-style: italic;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

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

/* 响应式适配 */
@media (max-width: 768px) {
    .nav-menu {
        gap: 10px;
        font-size: 13px;
    }

    .nav-link {
        white-space: nowrap;
    }

    .nav-logo {
        font-size: 15px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .mascot-placeholder {
        margin: 0 auto;
        width: 250px;
        height: 250px;
    }

    .booth-number span {
        display: block;
        margin: 12px auto 0;
        width: fit-content;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* 制品一览结构化UI */
.goods-group {
    margin-bottom: 48px;
}

.goods-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.goods-group-sub {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px dashed var(--border);
}

.goods-author {
    font-weight: 600;
    color: var(--text);
    background: var(--bg-alt);
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.goods-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.goods-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

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

.goods-item.sold-out {
    opacity: 0.65;
    background: #fafafa;
}

.goods-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    padding-right: 60px;
    line-height: 1.5;
}

.goods-item-spec {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.goods-item-prices {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.price-tag {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
}

.price-tag strong {
    color: var(--secondary);
    margin-left: 2px;
}

.goods-item-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.sold-out-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--secondary);
    color: white;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.goods-summary {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 32px;
    background: white;
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.goods-summary span {
    font-size: 15px;
    color: var(--text);
}

.goods-summary strong {
    color: var(--primary-dark);
    font-size: 18px;
}

/* 摊位图样式 */
.booth-map-wrap {
    max-width: 820px;
    margin: 0 auto 40px;
    text-align: center;
}

.booth-map-img {
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: zoom-in;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
}

.booth-map-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* 日程表样式 */
.schedule-wrap {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.schedule-img {
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.schedule-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.schedule-tip {
    margin-top: 16px;
    color: var(--text-light);
    font-size: 14px;
}

/* 图片放大模态层 */
.img-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
    cursor: zoom-out;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--primary);
    text-decoration: none;
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 8px 10px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 8px 0;
    }

    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 10px 16px;
    }

    .nav-link {
        font-size: 13px;
    }

    .hero {
        padding-top: 110px;
    }

    .hero-title {
        font-size: 28px;
    }

    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 32px;
    }
}
