/* ========================================
   潘晓娜 - B612 星球漫游
   小王子主题 · 深空蓝/玫瑰粉/星芒金
   现代升级版
   ======================================== */

:root {
    --space-deep: #0a0e27;
    --space-dark: #111638;
    --space-mid: #1a1f4e;
    --space-light: #252b5e;

    --rose: #e8a0b4;
    --rose-light: #f0c4d4;
    --rose-dark: #c9788e;
    --rose-bg: rgba(232, 160, 180, 0.08);

    --gold: #d4a853;
    --gold-light: #e8c97a;
    --gold-glow: rgba(212, 168, 83, 0.2);

    --text-primary: #e8e4f0;
    --text-secondary: #a8a4c0;
    --text-muted: #6e6a88;

    --bg-dark: #0d1130;
    --bg-card: rgba(26, 31, 78, 0.5);
    --bg-card-solid: rgba(21, 26, 66, 0.85);

    --shadow-glow: 0 0 40px rgba(212, 168, 83, 0.1);
    --shadow-rose: 0 0 40px rgba(232, 160, 180, 0.1);
    --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'LXGW WenKai', 'Noto Serif SC', serif;
    color: var(--text-primary);
    line-height: 1.9;
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 400;
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--rose); color: var(--space-deep); }

/* 进度条 */
#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--rose), var(--gold));
    z-index: 1001;
    transition: width 0.1s linear;
}

/* ---------- 星空 Canvas ---------- */
#starCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---------- 导航栏 ---------- */
#mainNav {
    background: transparent;
    padding: 20px 0;
    transition: var(--transition);
    z-index: 1000;
}

#mainNav.scrolled {
    background: rgba(13, 17, 48, 0.82);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: 12px 0;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(212, 168, 83, 0.06);
}

.navbar-brand {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--gold) !important;
    letter-spacing: 0.15em;
}

.navbar-brand i { font-size: 1.1rem; }

.nav-link {
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    padding: 8px 18px !important;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 18px;
    right: 18px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active { color: var(--gold-light) !important; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.navbar-toggler { border: 1px solid rgba(212, 168, 83, 0.2); padding: 6px 10px; }
.navbar-toggler-icon { filter: invert(0.8) sepia(0.5) hue-rotate(10deg) brightness(1.2); }

/* ---------- Hero ---------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 20px;
}

.prince-silhouette {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
}

.b612-planet {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2a3070, #151a42 60%, #0d1130);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        inset -8px -8px 20px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(37, 43, 94, 0.5),
        0 0 120px rgba(37, 43, 94, 0.2);
}

.planet-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
    animation: planetPulse 4s ease-in-out infinite;
}

@keyframes planetPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.25); opacity: 0.9; }
}

.hero-label {
    font-size: 0.9rem;
    color: var(--rose);
    font-style: italic;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.hero-title { margin-bottom: 20px; }

.title-line1 {
    display: block;
    font-size: 1.5rem;
    color: var(--text-secondary);
    letter-spacing: 0.3em;
    margin-bottom: 8px;
}

.title-line2 {
    display: block;
    font-size: clamp(2.5rem, 7vw, 4rem);
    color: var(--text-primary);
    letter-spacing: 0.15em;
    text-shadow: 0 0 60px rgba(212, 168, 83, 0.15);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    letter-spacing: 0.1em;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    border: 1px solid var(--gold);
    border-radius: 50px;
    color: var(--gold-light);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    transition: var(--transition);
}

.hero-btn:hover {
    background: var(--gold);
    color: var(--space-deep);
    box-shadow: 0 0 40px rgba(212, 168, 83, 0.2);
    transform: translateY(-3px);
}

/* 流星 */
.shooting-stars {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold-light);
    border-radius: 50%;
    animation: shootingStar 6s linear infinite;
}

.star::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 60px;
    height: 1px;
    background: linear-gradient(to left, var(--gold-light), transparent);
    transform-origin: left center;
}

.s1 { top: 20%; left: -10%; animation-delay: 0s; }
.s2 { top: 50%; left: -10%; animation-delay: 2.5s; }
.s3 { top: 75%; left: -10%; animation-delay: 5s; }

@keyframes shootingStar {
    0% { transform: translateX(0) translateY(0); opacity: 0; }
    5% { opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translateX(110vw) translateY(-30vh); opacity: 0; }
}

/* ---------- 通用 Section ---------- */
.section-padding { padding: 120px 0; position: relative; z-index: 1; }
.section-dark { background: var(--bg-dark); }
.section-header { margin-bottom: 60px; }

.section-label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.1em;
}

.title-divider {
    width: 50px;
    height: 1px;
    background: linear-gradient(to right, var(--rose), var(--gold));
    margin: 0 auto 20px;
}

.section-desc {
    font-size: 0.95rem;
    color: var(--rose);
    font-style: italic;
    max-width: 500px;
    margin: 0 auto;
}

/* ---------- 关于 ---------- */
.about-image-wrapper { position: relative; }

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(212, 168, 83, 0.1);
}

.about-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: var(--transition);
}

.about-image:hover img { transform: scale(1.04); }

.rose-decoration {
    position: absolute;
    bottom: -15px;
    right: -15px;
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 12px rgba(232, 160, 180, 0.25));
    animation: floatRose 4s ease-in-out infinite;
}

@keyframes floatRose {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.about-name {
    font-size: 1.8rem;
    color: var(--gold-light);
    margin-bottom: 8px;
    letter-spacing: 0.15em;
}

.about-signature {
    font-size: 1rem;
    color: var(--rose);
    font-style: italic;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(232, 160, 180, 0.1);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(212, 168, 83, 0.06);
    transition: var(--transition);
}

.info-item:hover {
    border-color: rgba(212, 168, 83, 0.15);
    box-shadow: var(--shadow-glow);
}

.info-item i { font-size: 1.1rem; color: var(--gold); }
.info-label { display: block; font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.info-value { font-size: 0.9rem; color: var(--text-primary); }

/* ---------- 星尘画廊 ---------- */
.gallery-card {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

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

.gallery-img { position: relative; overflow: hidden; }

.gallery-img img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-large .gallery-img img { aspect-ratio: 16/10; }
.gallery-card:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 39, 0.8) 0%, rgba(10, 14, 39, 0.15) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-card:hover .gallery-overlay { opacity: 1; }

.gallery-text h5 {
    color: var(--gold-light);
    font-size: 1.1rem;
    margin-bottom: 4px;
    letter-spacing: 0.1em;
}

.gallery-text p { color: var(--text-secondary); font-size: 0.85rem; margin: 0; }

/* ---------- 星球哲学 ---------- */
.philosophy-card {
    background: rgba(26, 31, 78, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 168, 83, 0.06);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.philosophy-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--rose), var(--gold));
    opacity: 0;
    transition: var(--transition);
}

.philosophy-card:hover {
    border-color: rgba(212, 168, 83, 0.15);
    box-shadow: var(--shadow-glow), var(--shadow-card);
    transform: translateY(-6px);
}

.philosophy-card:hover::before { opacity: 1; }

.philosophy-icon { font-size: 2.5rem; margin-bottom: 20px; }

.philosophy-card h3 {
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 12px;
    letter-spacing: 0.1em;
}

.philosophy-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

/* ---------- 联系 ---------- */
.contact-info { display: flex; flex-direction: column; gap: 20px; }

.contact-card-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(26, 31, 78, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 168, 83, 0.06);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.contact-card-item:hover {
    border-color: rgba(212, 168, 83, 0.15);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(212, 168, 83, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i { font-size: 1.2rem; color: var(--gold); }

.contact-label { display: block; font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
.contact-value { font-size: 0.95rem; color: var(--text-primary); transition: var(--transition); }
.contact-value:hover { color: var(--gold-light); }

.fox-quote {
    margin-top: 24px;
    padding: 28px;
    background: rgba(232, 160, 180, 0.04);
    border-left: 2px solid var(--rose);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.fox-quote p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.9;
    margin-bottom: 12px;
}

.fox-author { font-size: 0.75rem; color: var(--rose); letter-spacing: 0.1em; }

.contact-form-wrapper {
    background: rgba(26, 31, 78, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 168, 83, 0.06);
    border-radius: var(--radius);
    padding: 40px;
}

.form-label { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.1em; margin-bottom: 8px; }

.form-control {
    border: 1px solid rgba(212, 168, 83, 0.12);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: rgba(10, 14, 39, 0.5);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.08);
    background: rgba(10, 14, 39, 0.6);
}

.form-control::placeholder { color: var(--text-muted); font-style: italic; }

.btn-send {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--space-deep);
    border: none;
    padding: 14px 36px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-send:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.form-success { text-align: center; padding: 60px 20px; }
.success-icon { font-size: 3rem; margin-bottom: 16px; animation: floatRose 2s ease-in-out infinite; }
.form-success p { color: var(--rose-light); font-style: italic; }

/* ---------- 页脚 ---------- */
.footer-section {
    background: var(--space-deep);
    padding: 60px 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(212, 168, 83, 0.06);
}

.footer-quote {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.9;
}

.footer-text { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.1em; margin: 0; }

.tech-support {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    margin-top: 10px;
}

.tech-support a {
    color: var(--gold);
    transition: color 0.3s;
}

.tech-support a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* ---------- 回到顶部 ---------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(26, 31, 78, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 168, 83, 0.15);
    color: var(--gold);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    cursor: pointer;
}

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

.back-to-top:hover {
    background: var(--gold);
    color: var(--space-deep);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* ---------- Toast ---------- */
.toast-msg {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card-solid);
    color: var(--gold-light);
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.875rem;
    border: 1px solid rgba(212, 168, 83, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 9999;
    white-space: nowrap;
}

.toast-msg.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---------- 图片模态框 ---------- */
.photo-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.photo-modal.show { opacity: 1; visibility: visible; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 39, 0.92);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 0 60px rgba(212, 168, 83, 0.1);
}

.modal-title-text { color: var(--gold-light); font-size: 1rem; margin-top: 20px; letter-spacing: 0.1em; }

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

.modal-close:hover { color: var(--gold); }

/* ---------- 动画 ---------- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.fade-in-up.delay-1 { transition-delay: 0.15s; }
.fade-in-up.delay-2 { transition-delay: 0.3s; }
.fade-in-up.delay-3 { transition-delay: 0.45s; }
.fade-in-up.delay-4 { transition-delay: 0.6s; }

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--space-deep); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--gold), var(--rose)); border-radius: 3px; }

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
    .section-padding { padding: 80px 0; }
    .navbar-collapse {
        background: rgba(13, 17, 48, 0.95);
        backdrop-filter: blur(20px);
        padding: 16px;
        margin-top: 12px;
        border-radius: var(--radius);
        border: 1px solid rgba(212, 168, 83, 0.06);
    }
}

@media (max-width: 767px) {
    .hero-content { padding: 80px 16px; }
    .info-grid { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 28px; }
    .philosophy-card { padding: 28px 20px; }
}
