/* ============================================
   影视罗盘 - 航海罗盘探险风主题样式
   CSS前缀: yp-
   ============================================ */

/* Google Fonts 本地化替代 - 使用系统字体栈 */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Lato:wght@300;400;700;900&display=swap');

/* ---- CSS变量定义 ---- */
:root {
    --yp-brass: #C6A561;
    --yp-brass-dark: #A8893E;
    --yp-brass-light: #D4B978;
    --yp-parchment: #F2E8D5;
    --yp-parchment-dark: #E8D9BE;
    --yp-red: #9A3B3B;
    --yp-text: #3A3A3A;
    --yp-link: #005A8D;
    --yp-link-hover: #007BBD;
    --yp-dark-wood: #2A1F14;
    --yp-medium-wood: #5C3D2E;
    --yp-gold-glow: rgba(198, 165, 97, 0.6);
    --yp-shadow: rgba(42, 31, 20, 0.3);
}

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

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

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

/* ---- 干扰标签隐藏 ---- */
.compass-jammer-block {
    display: none !important;
}

/* ---- 通用排版 ---- */
.yp-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.yp-section-title {
    font-family: "Cinzel Decorative", "STSong", serif;
    color: var(--yp-brass-dark);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 30px;
}

.yp-section-title::before {
    content: ">> ";
    color: var(--yp-brass);
    font-weight: 700;
}

.yp-section-desc {
    font-size: 1rem;
    color: #5a5040;
    margin-bottom: 2rem;
    max-width: 800px;
}

/* ---- 导航栏 ---- */
#yp-header {
    background: url('../images/wood-texture.webp') center/cover;
    padding: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--yp-brass);
    box-shadow: 0 4px 12px var(--yp-shadow);
}

.yp-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px 20px;
}

.yp-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.yp-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--yp-brass);
}

.sp-logo-text {
    font-family: "Cinzel Decorative", serif;
    color: var(--yp-brass-light);
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.yp-nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.yp-nav-links li a {
    color: var(--yp-brass-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 8px 14px;
    position: relative;
    transition: color 0.3s;
    display: inline-block;
}

.yp-nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--yp-brass);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.yp-nav-links li a:hover {
    color: #fff;
}

.yp-nav-links li a:hover::after {
    width: 80%;
    animation: yp-wave 1s ease infinite;
}

@keyframes yp-wave {
    0%, 100% { transform: translateX(-50%) scaleY(1); }
    50% { transform: translateX(-50%) scaleY(1.8); }
}

/* 汉堡菜单 */
.yp-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.yp-hamburger span {
    width: 28px;
    height: 3px;
    background: var(--yp-brass-light);
    border-radius: 2px;
    transition: all 0.3s;
}

.yp-hamburger.yp-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.yp-hamburger.yp-active span:nth-child(2) {
    opacity: 0;
}

.yp-hamburger.yp-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* 移动端侧边栏 */
.yp-mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: url('../images/parchment-bg.webp') center/cover;
    background-color: var(--yp-parchment-dark);
    z-index: 9999;
    transition: right 0.4s ease;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 20px var(--yp-shadow);
    border-left: 3px solid var(--yp-brass);
    overflow-y: auto;
}

.yp-mobile-menu.yp-open {
    right: 0;
}

.yp-mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--yp-brass-dark);
    cursor: pointer;
    background: none;
    border: none;
    font-family: serif;
}

.yp-mobile-menu ul {
    list-style: none;
}

.yp-mobile-menu ul li {
    border-bottom: 1px solid var(--yp-brass-light);
}

.yp-mobile-menu ul li a {
    display: block;
    padding: 15px 10px;
    color: var(--yp-text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: color 0.3s, padding-left 0.3s;
}

.yp-mobile-menu ul li a:hover {
    color: var(--yp-brass-dark);
    padding-left: 20px;
}

.yp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}

.yp-overlay.yp-show {
    display: block;
}

/* ---- 首页英雄区 ---- */
.yp-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../images/hero-bg.webp') center/cover no-repeat;
    overflow: hidden;
}

.yp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(42,31,20,0.4) 0%, rgba(42,31,20,0.7) 100%);
}

.yp-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
}

.yp-hero-slogan {
    font-family: "Cinzel Decorative", "STSong", serif;
    font-size: 3rem;
    color: var(--yp-brass-light);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.yp-hero-desc {
    font-size: 1.2rem;
    color: var(--yp-parchment);
    max-width: 700px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.yp-hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--yp-brass), var(--yp-brass-dark));
    color: var(--yp-dark-wood);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--yp-brass-light);
    border-radius: 4px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--yp-gold-glow);
}

.yp-hero-btn:hover {
    background: linear-gradient(135deg, var(--yp-brass-light), var(--yp-brass));
    transform: scale(1.05);
    box-shadow: 0 6px 25px var(--yp-gold-glow);
}

/* 指南针晃动动画 */
@keyframes yp-compass-wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    75% { transform: rotate(-3deg); }
}

.yp-wobble:hover {
    animation: yp-compass-wobble 0.5s ease;
}

/* ---- 通用卡片样式 ---- */
.yp-card {
    background: url('../images/parchment-bg.webp') center/cover;
    background-color: var(--yp-parchment);
    border: 2px solid var(--yp-brass-light);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px var(--yp-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.yp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--yp-shadow);
}

.yp-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at top right, var(--yp-gold-glow) 0%, transparent 70%);
    pointer-events: none;
}

.yp-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--yp-brass-light);
    margin-bottom: 15px;
}

.yp-card-title {
    font-family: "Cinzel Decorative", serif;
    font-size: 1.15rem;
    color: var(--yp-brass-dark);
    margin-bottom: 8px;
}

.yp-card-text {
    font-size: 0.9rem;
    color: #5a5040;
    line-height: 1.6;
}

.yp-card-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--yp-link);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.yp-card-link:hover {
    color: var(--yp-link-hover);
}

/* ---- 网格布局 ---- */
.yp-grid {
    display: grid;
    gap: 24px;
}

.yp-grid-2 { grid-template-columns: repeat(2, 1fr); }
.yp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.yp-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- 各模块区域 ---- */
.yp-section {
    padding: 60px 0;
}

.yp-section-alt {
    background-color: rgba(198, 165, 97, 0.08);
}

/* 最新航线 - 时间轴 */
.yp-timeline {
    position: relative;
    padding: 20px 0;
}

.yp-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--yp-brass), var(--yp-brass-dark));
}

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

.yp-timeline-item:nth-child(odd) {
    flex-direction: row;
    padding-right: calc(50% + 30px);
    text-align: right;
}

.yp-timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    padding-left: calc(50% + 30px);
    text-align: left;
}

.yp-timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--yp-brass);
    border-radius: 50%;
    border: 3px solid var(--yp-parchment);
    box-shadow: 0 0 8px var(--yp-gold-glow);
    z-index: 2;
}

.yp-timeline-content {
    background: var(--yp-parchment);
    border: 1px solid var(--yp-brass-light);
    padding: 18px;
    border-radius: 6px;
    box-shadow: 0 2px 8px var(--yp-shadow);
}

.yp-timeline-date {
    font-size: 0.85rem;
    color: var(--yp-brass-dark);
    font-weight: 700;
    margin-bottom: 5px;
}

.yp-timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--yp-text);
    margin-bottom: 5px;
}

.yp-timeline-text {
    font-size: 0.9rem;
    color: #5a5040;
}

/* 船长推荐 - 卷轴样式 */
.yp-scroll-card {
    background: linear-gradient(135deg, var(--yp-parchment) 0%, var(--yp-parchment-dark) 100%);
    border: 2px solid var(--yp-brass);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    box-shadow: 0 4px 15px var(--yp-shadow);
}

.yp-scroll-card::before,
.yp-scroll-card::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    height: 15px;
    background: linear-gradient(90deg, var(--yp-brass-dark), var(--yp-brass), var(--yp-brass-dark));
    border-radius: 50%;
}

.yp-scroll-card::before { top: -8px; }
.yp-scroll-card::after { bottom: -8px; }

/* 资源补给站 */
.yp-supply-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--yp-parchment);
    border: 1px solid var(--yp-brass-light);
    border-radius: 6px;
    margin-bottom: 12px;
    transition: transform 0.3s;
}

.yp-supply-item:hover {
    transform: translateX(8px);
}

.yp-supply-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--yp-brass), var(--yp-brass-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* 航海日志 - 新闻滚动 */
.yp-logbook-ticker {
    overflow: hidden;
    height: 300px;
    position: relative;
}

.yp-logbook-list {
    list-style: none;
    animation: yp-ticker 20s linear infinite;
}

.yp-logbook-list:hover {
    animation-play-state: paused;
}

@keyframes yp-ticker {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.yp-logbook-item {
    padding: 15px;
    border-bottom: 1px dashed var(--yp-brass-light);
    font-size: 0.95rem;
}

.yp-logbook-item strong {
    color: var(--yp-brass-dark);
    display: block;
    margin-bottom: 4px;
}

/* 寻宝任务 */
.yp-quest-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--yp-red), #7a2d2d);
    color: #fff;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 8px;
}

/* 罗盘工具箱 */
.yp-tool-card {
    text-align: center;
    padding: 30px 20px;
    cursor: pointer;
}

.yp-tool-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

/* ---- 页脚 ---- */
#yp-footer {
    background: url('../images/dark-wood.webp') center/cover;
    background-color: var(--yp-dark-wood);
    color: var(--yp-parchment-dark);
    padding: 50px 0 0;
    border-top: 4px solid var(--yp-brass);
}

.yp-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.yp-footer-col h3 {
    font-family: "Cinzel Decorative", serif;
    color: var(--yp-brass-light);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--yp-brass-dark);
}

.yp-footer-col ul {
    list-style: none;
}

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

.yp-footer-col ul li a {
    color: var(--yp-parchment-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.yp-footer-col ul li a:hover {
    color: var(--yp-brass-light);
}

.yp-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.yp-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--yp-brass-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yp-parchment);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.yp-footer-social a:hover {
    background: var(--yp-brass);
}

.yp-footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(198, 165, 97, 0.3);
    font-size: 0.85rem;
    color: rgba(242, 232, 213, 0.7);
}

.yp-footer-bottom a {
    color: var(--yp-brass-light);
    text-decoration: none;
}

.yp-footer-bottom a:hover {
    text-decoration: underline;
}

.yp-footer-honor {
    margin-top: 8px;
    color: var(--yp-brass-light);
    font-size: 0.85rem;
}

.yp-footer-license {
    margin-top: 6px;
    font-size: 0.8rem;
}

/* ---- 内页通用 ---- */
.yp-page-banner {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.yp-page-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yp-page-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(42,31,20,0.3), rgba(42,31,20,0.7));
}

.yp-page-banner-text {
    position: relative;
    z-index: 2;
}

.yp-page-banner-text h1 {
    font-family: "Cinzel Decorative", serif;
    font-size: 2.5rem;
    color: var(--yp-brass-light);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin-bottom: 10px;
}

.yp-page-banner-text p {
    color: var(--yp-parchment);
    font-size: 1.1rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.yp-page-content {
    padding: 50px 0;
}

.yp-page-content p {
    margin-bottom: 1.2rem;
    text-indent: 2em;
}

/* ---- 藏宝图页面 ---- */
.yp-map-container {
    position: relative;
    height: 600px;
    border: 3px solid var(--yp-brass);
    border-radius: 8px;
    overflow: hidden;
    background: var(--yp-parchment-dark);
}

.yp-map-sidebar {
    background: var(--yp-parchment);
    border: 2px solid var(--yp-brass-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.yp-map-sidebar h3 {
    font-family: "Cinzel Decorative", serif;
    color: var(--yp-brass-dark);
    margin-bottom: 15px;
}

.yp-filter-group {
    margin-bottom: 15px;
}

.yp-filter-group label {
    display: block;
    font-weight: 700;
    color: var(--yp-text);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.yp-filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--yp-brass-light);
    border-radius: 4px;
    background: var(--yp-parchment);
    color: var(--yp-text);
    font-size: 0.9rem;
}

.yp-filter-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--yp-brass), var(--yp-brass-dark));
    color: var(--yp-dark-wood);
    border: 2px solid var(--yp-brass-light);
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.yp-filter-btn:hover {
    background: linear-gradient(135deg, var(--yp-brass-light), var(--yp-brass));
}

/* ---- APP下载页 ---- */
.yp-app-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #1a3a5c 0%, #0d2137 100%);
    position: relative;
    overflow: hidden;
}

.yp-app-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 40px 20px;
}

.yp-app-bottle {
    max-width: 300px;
    margin: 0 auto 30px;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(198, 165, 97, 0.4);
}

.yp-app-title {
    font-family: "Cinzel Decorative", serif;
    font-size: 2.2rem;
    color: var(--yp-brass-light);
    margin-bottom: 15px;
}

.yp-app-desc {
    color: var(--yp-parchment);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.yp-app-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.yp-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--yp-brass), var(--yp-brass-dark));
    color: var(--yp-dark-wood);
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--yp-brass-light);
    border-radius: 30px;
    transition: all 0.3s;
}

.yp-app-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px var(--yp-gold-glow);
}

/* 海洋波浪动画 */
.yp-ocean-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23F2E8D5' fill-opacity='0.15' d='M0,32L48,37.3C96,43,192,53,288,58.7C384,64,480,64,576,58.7C672,53,768,43,864,42.7C960,43,1056,53,1152,53.3C1248,53,1344,43,1392,37.3L1440,32L1440,100L1392,100C1344,100,1248,100,1152,100C1056,100,960,100,864,100C768,100,672,100,576,100C480,100,384,100,288,100C192,100,96,100,48,100L0,100Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    animation: yp-wave-move 8s linear infinite;
}

@keyframes yp-wave-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- 按钮通用 ---- */
.yp-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--yp-brass), var(--yp-brass-dark));
    color: var(--yp-dark-wood);
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--yp-brass-light);
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 0.95rem;
}

.yp-btn:hover {
    background: linear-gradient(135deg, var(--yp-brass-light), var(--yp-brass));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--yp-gold-glow);
}

/* ---- 面包屑 ---- */
.yp-breadcrumb {
    padding: 15px 0;
    font-size: 0.85rem;
    color: #7a6f5f;
}

.yp-breadcrumb a {
    color: var(--yp-link);
    text-decoration: none;
}

.yp-breadcrumb a:hover {
    text-decoration: underline;
}

.yp-breadcrumb span {
    margin: 0 8px;
    color: var(--yp-brass);
}

/* ---- 响应式设计 ---- */

/* 1440px */
@media (max-width: 1440px) {
    .yp-container {
        max-width: 1200px;
    }
}

/* 1024px */
@media (max-width: 1024px) {
    .yp-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .yp-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .yp-hero-slogan {
        font-size: 2.2rem;
    }
    .yp-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 768px */
@media (max-width: 768px) {
    .yp-nav-links {
        display: none;
    }
    .yp-hamburger {
        display: flex;
    }
    .yp-grid-2,
    .yp-grid-3,
    .yp-grid-4 {
        grid-template-columns: 1fr;
    }
    .yp-hero {
        min-height: 60vh;
    }
    .yp-hero-slogan {
        font-size: 1.8rem;
    }
    .yp-hero-desc {
        font-size: 1rem;
    }
    .yp-section-title {
        font-size: 1.4rem;
    }
    .yp-page-banner {
        height: 250px;
    }
    .yp-page-banner-text h1 {
        font-size: 1.8rem;
    }
    .yp-timeline::before {
        left: 20px;
    }
    .yp-timeline-item:nth-child(odd),
    .yp-timeline-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
        flex-direction: row;
    }
    .yp-timeline-dot {
        left: 20px;
    }
    .yp-footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .yp-section {
        padding: 40px 0;
    }
    .yp-map-container {
        height: 400px;
    }
}

/* 360px */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }
    .yp-hero-slogan {
        font-size: 1.5rem;
    }
    .yp-nav-inner {
        padding: 8px 12px;
    }
    .sp-logo-text {
        font-size: 1.1rem;
    }
    .yp-app-title {
        font-size: 1.6rem;
    }
}

/* ---- 页面加载动画 ---- */
.yp-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--yp-parchment);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s, visibility 0.6s;
}

.yp-page-loader.yp-loaded {
    opacity: 0;
    visibility: hidden;
}

.yp-loader-compass {
    width: 80px;
    height: 80px;
    animation: yp-spin 1.5s ease-in-out infinite;
}

@keyframes yp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ---- 杂项 ---- */
.yp-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--yp-brass), transparent);
    margin: 30px auto;
}

.yp-text-center { text-align: center; }
.yp-mt-20 { margin-top: 20px; }
.yp-mb-20 { margin-bottom: 20px; }
.yp-mt-40 { margin-top: 40px; }
.yp-mb-40 { margin-bottom: 40px; }

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--yp-link);
    transition: color 0.3s;
}

a:hover {
    color: var(--yp-link-hover);
}
