@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --ink: #0d1824;
    --ink-soft: #26384b;
    --muted: #647486;
    --paper: #f5f8f9;
    --paper-deep: #eaf0f1;
    --line: rgba(13, 24, 36, 0.1);
    --ice: #dff7f1;
    --teal: #2ec4a6;
    --teal-deep: #168c7b;
    --blue: #3e74f5;
    --gold: #f3b74b;
    --shadow-sm: 0 8px 22px rgba(13, 24, 36, 0.07);
    --shadow-lg: 0 24px 65px rgba(13, 24, 36, 0.14);
}

html {
    scroll-behavior: smooth;
    background: var(--paper);
}

body {
    color: var(--ink);
    background: var(--paper);
    font-family: 'Manrope', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body::selection {
    color: #fff;
    background: var(--teal-deep);
}

nav.fixed {
    height: 76px;
    background: rgba(10, 24, 35, 0.74) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 30px rgba(4, 12, 19, 0.16) !important;
    backdrop-filter: blur(18px) saturate(140%);
}

nav .h-16 {
    height: 76px;
}

nav .font-\[\'Pacifico\'\] {
    color: #effffc !important;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

nav .font-\[\'Pacifico\'\]::before {
    content: '';
    width: 10px;
    height: 10px;
    display: inline-block;
    background: var(--teal);
    border-radius: 3px;
    box-shadow: 0 0 0 5px rgba(46, 196, 166, 0.13), 0 0 20px rgba(46, 196, 166, 0.6);
    transform: rotate(45deg);
}

nav .hidden.md\:flex {
    gap: 1.7rem;
}

nav .hidden.md\:flex a {
    color: rgba(236, 247, 247, 0.74) !important;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: color 180ms ease, transform 180ms ease;
    position: relative;
}

nav .hidden.md\:flex a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    background: var(--teal);
    transition: right 180ms ease;
}

nav .hidden.md\:flex a:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

nav .hidden.md\:flex a:hover::after {
    right: 0;
}

nav > div > div > a:last-child {
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 10px !important;
    background: var(--teal) !important;
    color: #06261f !important;
    box-shadow: 0 8px 20px rgba(46, 196, 166, 0.25) !important;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    transition: transform 180ms ease, box-shadow 180ms ease !important;
}

nav > div > div > a:last-child:hover {
    background: #5bdfc4 !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(46, 196, 166, 0.34) !important;
}

.hero-section {
    min-height: 790px !important;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-color: #091823;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(5, 16, 26, 0.94) 0%, rgba(5, 16, 26, 0.76) 39%, rgba(5, 16, 26, 0.32) 100%),
        linear-gradient(180deg, rgba(4, 15, 24, 0.38) 0%, rgba(4, 15, 24, 0.8) 100%);
}

.hero-section::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: min(46vw, 720px);
    height: 280px;
    right: -8vw;
    bottom: -90px;
    background: rgba(46, 196, 166, 0.16);
    filter: blur(90px);
    pointer-events: none;
}

.hero-section > div {
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 760px;
    padding-top: 1rem;
    animation: heroIn 0.75s ease-out both;
}

.hero-copy > p:first-child {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.35rem !important;
    color: #9df5dc !important;
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem !important;
    letter-spacing: 0.16em;
}

.hero-copy > p:first-child::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--teal);
    box-shadow: 0 0 12px var(--teal);
}

.hero-copy h1 {
    color: #fff !important;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(4.2rem, 9vw, 7.8rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.04em;
    line-height: 0.98 !important;
    margin-bottom: 1.6rem !important;
    text-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.hero-copy > p:nth-of-type(2) {
    max-width: 660px;
    color: rgba(237, 250, 248, 0.82) !important;
    font-size: clamp(1.05rem, 2vw, 1.36rem) !important;
    font-weight: 500 !important;
    line-height: 1.85 !important;
}

.hero-copy .flex.flex-col.sm\:flex-row {
    margin-top: 2rem;
    margin-bottom: 2rem !important;
    gap: 0.8rem;
}

.hero-copy .flex.flex-col.sm\:flex-row a {
    min-height: 52px;
    border-radius: 11px !important;
    padding: 0.8rem 1.6rem !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-copy .flex.flex-col.sm\:flex-row a:first-child {
    color: #06261f !important;
    background: var(--teal) !important;
    box-shadow: 0 12px 28px rgba(46, 196, 166, 0.26) !important;
}

.hero-copy .flex.flex-col.sm\:flex-row a:first-child:hover {
    background: #66e5ca !important;
    transform: translateY(-2px);
}

.hero-copy .flex.flex-col.sm\:flex-row a:last-child {
    border-color: rgba(232, 255, 250, 0.32) !important;
    background: rgba(236, 255, 249, 0.08) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero-copy .flex.flex-col.sm\:flex-row a:last-child:hover {
    background: rgba(236, 255, 249, 0.16) !important;
}

.hero-meta {
    gap: 0.55rem !important;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(240, 255, 251, 0.18);
    border-radius: 9px;
    background: rgba(235, 255, 250, 0.08);
    padding: 0.53rem 0.78rem;
    color: rgba(240, 255, 251, 0.85);
    font-size: 0.72rem;
    backdrop-filter: blur(10px);
}

.hero-meta span i {
    color: var(--teal);
}

section:not(.hero-section) {
    position: relative;
}

section:not(.hero-section) > div {
    position: relative;
}

#features {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
    background: var(--paper) !important;
}

#features .text-center.mb-14,
#server-status h2,
#advantages > div > h2,
#rules h2,
#team h2,
#faq h2 {
    letter-spacing: -0.025em;
}

#features .text-center.mb-14 p,
#server-status > div > p,
#features .text-center.mb-14 > p {
    color: var(--teal-deep) !important;
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#features .text-center.mb-14 h2,
#server-status h2,
#advantages > div > h2,
#rules h2,
#team h2,
#faq h2 {
    color: var(--ink) !important;
    font-family: 'Space Grotesk', 'Microsoft YaHei', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 700;
}

#features .grid {
    gap: 1.15rem !important;
}

.feature-card {
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.78) !important;
    box-shadow: var(--shadow-sm) !important;
}

.feature-card img {
    width: 100%;
    height: 214px !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    filter: saturate(0.82) contrast(1.04);
    transition: transform 450ms cubic-bezier(.2,.65,.25,1), filter 450ms ease;
}

.feature-card:hover img {
    transform: scale(1.045);
    filter: saturate(1.05) contrast(1.06);
}

.feature-card h3,
.feature-card p {
    margin-left: 1.45rem;
    margin-right: 1.45rem;
}

.feature-card h3 {
    margin-top: 1.35rem;
    margin-bottom: 0.5rem !important;
    color: var(--ink) !important;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem !important;
}

.feature-card p {
    margin-bottom: 1.55rem;
    color: var(--muted) !important;
    font-size: 0.88rem;
    line-height: 1.8;
}

.feature-card,
.team-member,
#faq .bg-white,
#rules .bg-white,
.status-card {
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.feature-card:hover,
.team-member:hover,
#faq .bg-white:hover,
#rules .bg-white:hover {
    transform: translateY(-6px);
    border-color: rgba(46, 196, 166, 0.35) !important;
    box-shadow: var(--shadow-lg) !important;
}

#ip {
    background: #0b1c29;
}

.join-section {
    padding-top: 6.5rem !important;
    padding-bottom: 6.5rem !important;
    background:
        linear-gradient(135deg, rgba(46, 196, 166, 0.12), transparent 44%),
        #0b1c29 !important;
    overflow: hidden;
}

.join-section::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    right: -190px;
    top: -180px;
    border: 1px solid rgba(46, 196, 166, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgba(46, 196, 166, 0.04), 0 0 0 70px rgba(46, 196, 166, 0.025);
}

.join-section h2 {
    position: relative;
    z-index: 1;
    margin-bottom: 1.45rem !important;
    color: #f4fffd !important;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3.1rem) !important;
}

.join-section > div.inline-flex {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(153, 244, 222, 0.22) !important;
    border-radius: 12px !important;
    background: rgba(245, 255, 252, 0.08) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(16px);
}

#ip-text {
    color: #e9fff8 !important;
    font-family: 'DM Mono', monospace;
    font-size: clamp(1.25rem, 3vw, 1.8rem) !important;
    letter-spacing: 0.04em;
}

#copy-ip {
    min-height: 42px;
    border-radius: 8px !important;
    background: var(--teal) !important;
    color: #06261f !important;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: none !important;
}

#copy-ip:hover {
    background: #64e4c9 !important;
}

.join-section .max-w-3xl {
    position: relative;
    z-index: 1;
    gap: 0.7rem !important;
}

.join-section .max-w-3xl > div {
    border: 1px solid rgba(159, 244, 222, 0.13) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
    transition: background 180ms ease, transform 180ms ease;
}

.join-section .max-w-3xl > div:hover {
    background: rgba(255, 255, 255, 0.11) !important;
    transform: translateY(-3px);
}

.join-section .max-w-3xl > div p {
    color: rgba(207, 234, 228, 0.55) !important;
    font-size: 0.68rem;
}

.join-section .max-w-3xl > div a {
    color: #a5f6df !important;
    font-size: 0.88rem;
}

.join-section > p:last-child {
    position: relative;
    z-index: 1;
    color: rgba(226, 245, 240, 0.54) !important;
    font-size: 0.78rem;
}

#server-status {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
    background: #eef4f4 !important;
}

#server-status h2 {
    margin-bottom: 0.6rem !important;
}

#server-status h2 i {
    color: var(--teal-deep) !important;
}

#server-status > div > p {
    margin-bottom: 2.2rem !important;
    color: var(--muted) !important;
    font-family: 'Manrope', sans-serif;
    font-size: 0.84rem;
    letter-spacing: 0;
    text-transform: none;
}

.status-card {
    border: 1px solid rgba(13, 24, 36, 0.1) !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, 0.62) !important;
    box-shadow: 0 18px 50px rgba(25, 45, 56, 0.1) !important;
    backdrop-filter: blur(15px);
}

.status-card > div:first-child {
    padding: 1.1rem 1.3rem !important;
    border-bottom-color: var(--line) !important;
    background: rgba(255, 255, 255, 0.74) !important;
}

.status-card > div:first-child .text-blue-600 {
    color: var(--teal-deep) !important;
}

.status-card > div:first-child span.font-mono {
    color: var(--ink) !important;
    font-family: 'DM Mono', monospace;
}

.status-card > div:first-child span.text-xs {
    border-radius: 5px;
    background: var(--ice) !important;
    color: var(--teal-deep) !important;
}

#lastUpdateTime {
    color: var(--muted) !important;
}

#manualRefreshBtn {
    border-radius: 7px !important;
    color: var(--teal-deep) !important;
    background: var(--ice) !important;
    box-shadow: none !important;
}

#statusContent {
    padding: 1.4rem !important;
}

#statusContent .bg-white {
    border-color: var(--line) !important;
    background: rgba(255, 255, 255, 0.72) !important;
    box-shadow: 0 7px 20px rgba(13, 24, 36, 0.04) !important;
}

#statusContent .text-blue-600 {
    color: var(--blue) !important;
}

#statusContent .text-green-700 {
    color: var(--teal-deep) !important;
}

#statusContent .bg-green-100 {
    color: var(--teal-deep) !important;
    background: var(--ice) !important;
}

#server-status > div > div > div.text-center {
    color: var(--muted) !important;
}

#server-status > div > div > div.text-center i {
    color: var(--teal-deep) !important;
}

#advantages {
    padding-top: 6.5rem !important;
    padding-bottom: 6.5rem !important;
    background: var(--paper) !important;
}

#advantages .grid {
    gap: 1rem !important;
}

#advantages .grid > div {
    padding: 1.5rem 1.3rem;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

#advantages .grid > div:hover {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.72);
    transform: translateY(-4px);
}

#advantages .grid > div > div {
    width: 48px !important;
    height: 48px !important;
    border-radius: 10px !important;
    background: var(--ice) !important;
}

#advantages .grid > div > div i {
    color: var(--teal-deep) !important;
    font-size: 1.15rem !important;
}

#advantages h3 {
    color: var(--ink) !important;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.04rem !important;
}

#advantages p {
    color: var(--muted) !important;
    font-size: 0.82rem;
}

#rules {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
    background: #e8f0f0 !important;
}

#rules h2,
#team h2,
#faq h2 {
    margin-bottom: 2.2rem !important;
}

#rules .max-w-4xl > div {
    padding: 1.35rem 1.5rem !important;
    border: 1px solid rgba(13, 24, 36, 0.09) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.66) !important;
    box-shadow: var(--shadow-sm) !important;
}

#rules ul {
    gap: 0 !important;
}

#rules li {
    min-height: 52px;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.92rem;
}

#rules li:last-child {
    border-bottom: 0;
}

#rules li i {
    color: var(--teal-deep) !important;
    font-size: 1rem !important;
}

#rules li span {
    color: var(--ink-soft) !important;
}

#team {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
    background: var(--paper) !important;
}

#team .grid {
    gap: 1rem !important;
}

.team-member {
    padding: 1.6rem 1.25rem !important;
    border: 1px solid var(--line) !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, 0.75) !important;
    box-shadow: var(--shadow-sm) !important;
}

.team-member img {
    width: 94px !important;
    height: 94px !important;
    margin-bottom: 1rem !important;
    border: 3px solid #fff !important;
    box-shadow: 0 0 0 3px rgba(46, 196, 166, 0.32), 0 10px 25px rgba(13, 24, 36, 0.14);
    object-fit: cover;
}

.team-member h3 {
    color: var(--ink) !important;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem !important;
}

.team-member p {
    color: var(--muted) !important;
    font-size: 0.78rem;
}

#faq {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
    background: #e8f0f0 !important;
}

#faq .space-y-4 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

#faq .space-y-4 > div {
    min-height: 190px;
    padding: 1.45rem !important;
    border: 1px solid rgba(13, 24, 36, 0.09) !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    box-shadow: var(--shadow-sm) !important;
}

#faq .space-y-4 h3 {
    color: var(--ink) !important;
    font-family: 'Space Grotesk', 'Microsoft YaHei', sans-serif;
    font-size: 1rem !important;
    line-height: 1.55;
}

#faq .space-y-4 p {
    color: var(--muted) !important;
    font-size: 0.84rem;
    line-height: 1.8;
}

footer {
    padding-top: 4.5rem !important;
    padding-bottom: 2rem !important;
    background: #081721 !important;
}

footer .font-\[\'Pacifico\'\] {
    color: #effffc !important;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

footer p,
footer li,
footer a {
    color: rgba(210, 230, 228, 0.6) !important;
    font-size: 0.79rem;
}

footer h4 {
    color: #e8fffa !important;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem !important;
    letter-spacing: 0.04em;
}

footer a:hover {
    color: var(--teal) !important;
}

footer .border-t {
    border-color: rgba(199, 237, 229, 0.12) !important;
}

#backToTop,
#musicControl {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: var(--teal) !important;
    color: #06261f !important;
    box-shadow: 0 12px 28px rgba(4, 25, 22, 0.22) !important;
    transition: transform 200ms ease, box-shadow 200ms ease, opacity 300ms ease;
}

#backToTop:hover,
#musicControl:hover {
    background: #69e6ca !important;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 16px 34px rgba(4, 25, 22, 0.28) !important;
}

#musicControl.playing {
    animation: musicPulse 2.3s ease-in-out infinite;
}

.music-tooltip {
    bottom: calc(100% + 10px);
    background: #081721;
    border: 1px solid rgba(210, 255, 245, 0.17);
    color: #e8fffa;
    border-radius: 7px;
}

.skeleton-pulse {
    background: linear-gradient(90deg, #dce7e7 25%, #eef6f4 50%, #dce7e7 75%);
    background-size: 200% 100%;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 12px 28px rgba(4, 25, 22, 0.22), 0 0 0 0 rgba(46, 196, 166, 0.35); }
    50% { box-shadow: 0 15px 34px rgba(4, 25, 22, 0.28), 0 0 0 10px rgba(46, 196, 166, 0); }
}

@media (max-width: 900px) {
    nav .hidden.md\:flex { gap: 0.9rem; }
    nav .hidden.md\:flex a { font-size: 0.72rem; }
    #faq .space-y-4 { grid-template-columns: 1fr; }
    #faq .space-y-4 > div { min-height: auto; }
}

@media (max-width: 768px) {
    nav.fixed,
    nav .h-16 { height: 64px; }
    nav .px-4 { padding-left: 1.1rem; padding-right: 1.1rem; }
    nav .font-\[\'Pacifico\'\] { font-size: 1.15rem; }
    nav > div > div > a:last-child { padding: 0.55rem 0.8rem !important; }
    .hero-section { min-height: 740px !important; background-position: 58% center !important; }
    .hero-section::before { background: linear-gradient(180deg, rgba(5, 16, 26, 0.73) 0%, rgba(5, 16, 26, 0.91) 100%); }
    .hero-section > div { padding-left: 1.2rem; padding-right: 1.2rem; }
    .hero-copy { padding-top: 2rem; }
    .hero-copy h1 { font-size: clamp(3.8rem, 17vw, 6.2rem) !important; }
    .hero-copy > p:nth-of-type(2) { font-size: 1rem !important; line-height: 1.75 !important; }
    .hero-copy .flex.flex-col.sm\:flex-row { margin-top: 1.4rem; }
    .hero-copy .flex.flex-col.sm\:flex-row a { width: 100%; }
    .hero-meta { display: grid !important; grid-template-columns: 1fr 1fr; }
    .hero-meta span { justify-content: center; font-size: 0.66rem; padding: 0.5rem 0.35rem; }
    .hero-meta span:last-child { grid-column: 1 / -1; }
    #features,
    #server-status,
    #rules,
    #team,
    #faq { padding-top: 5rem !important; padding-bottom: 5rem !important; }
    #features .text-center.mb-14 { margin-bottom: 2rem !important; }
    #features .text-center.mb-14 h2,
    #server-status h2,
    #advantages > div > h2,
    #rules h2,
    #team h2,
    #faq h2 { font-size: 2rem !important; }
    .feature-card img { height: 190px !important; }
    .join-section { padding: 5rem 1.2rem !important; }
    .join-section > div.inline-flex { width: 100%; padding: 1.1rem !important; }
    #ip-text { font-size: 1.15rem !important; }
    #copy-ip { width: 100%; }
    #advantages { padding-top: 5rem !important; padding-bottom: 5rem !important; }
    #advantages .grid { gap: 0.4rem !important; }
    #advantages .grid > div { padding: 1rem 0.6rem; }
    #advantages p { font-size: 0.76rem; }
    #rules .max-w-4xl > div { padding: 1rem !important; }
    #rules li { font-size: 0.82rem; }
    #statusContent { padding: 1rem !important; }
    footer { padding-top: 3.5rem !important; }
    footer .grid { gap: 2rem !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
