:root {
    --bg-color: #05010a;
    --primary-color: #00f3ff;
    --secondary-color: #ff007f;
    --accent-color: #fdf500;
    --text-main: #e0e0e0;
    --text-muted: #8a8a8a;
    --glass-bg: rgba(20, 5, 35, 0.6);
    --glass-border: rgba(0, 243, 255, 0.4);
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center center;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
}

/* Background Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

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

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

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.6rem 1.5rem;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-weight: bold;
    text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-primary {
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3) inset;
}

.btn-primary:hover, .glow-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(255, 0, 127, 0.1);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-right: 3px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 0 20px var(--secondary-color);
    transform: scale(1.05);
}

.btn-unique {
    background: linear-gradient(45deg, var(--secondary-color), #8a2be2);
    color: #fff;
    border: none;
    padding: 0.8rem 3rem;
    font-size: 1.3rem;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.5);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 3px solid var(--accent-color);
}

.btn-unique:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 0, 127, 0.8), 0 0 15px rgba(253, 245, 0, 0.6);
    background: linear-gradient(45deg, #ff1a8c, #9d4edd);
    color: #fff;
}

.unique-annotation {
    margin-top: 0.8rem;
    font-size: 1rem;
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(253, 245, 0, 0.6);
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 0, 127, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
}

.hero-content {
    max-width: 1000px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 
        0 0 2px #fff,
        0 0 5px var(--primary-color),
        0 0 15px var(--primary-color),
        0 0 30px var(--primary-color);
}

.hero-annotation {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    font-weight: 300;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Public Cards (公益卡片) */
.public-card {
    background: rgba(255, 0, 127, 0.05);
    border: 1px solid rgba(255, 0, 127, 0.3);
    border-radius: 0;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border-left: 3px solid var(--secondary-color);
}

.public-card:hover {
    background: rgba(255, 0, 127, 0.15);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 0, 127, 0.3);
}

.public-card .card-icon {
    font-size: 1.8rem;
}

.public-card .card-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-main);
    letter-spacing: 1px;
}


/* 侧边悬浮咨询按钮 */
.floating-consult {
    position: fixed;
    right: 30px;
    bottom: 50px;
    background: linear-gradient(135deg, #ff3366, #ff004c); /* 改为醒目的红色/粉色渐变 */
    color: #fff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 0 25px rgba(255, 51, 102, 0.8), 0 0 10px rgba(255, 255, 255, 0.5) inset;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 20px rgba(255, 51, 102, 0.6), 0 0 0 0 rgba(255, 51, 102, 0.4); }
    70% { box-shadow: 0 0 30px rgba(255, 51, 102, 0.8), 0 0 0 15px rgba(255, 51, 102, 0); }
    100% { box-shadow: 0 0 20px rgba(255, 51, 102, 0.6), 0 0 0 0 rgba(255, 51, 102, 0); }
}

.floating-consult:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 0 40px rgba(255, 51, 102, 1);
    animation: none;
}

.floating-consult::after {
    content: '在线咨询';
    position: absolute;
    bottom: -30px;
    font-size: 1rem;
    white-space: nowrap;
    color: #ff3366;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
    text-shadow: 0 0 5px rgba(255, 51, 102, 0.5);
}

.floating-consult:hover::after {
    opacity: 1;
}

/* 聊天窗口样式 */
.chat-widget {
    position: fixed;
    right: 30px;
    bottom: 130px;
    width: 350px;
    height: 500px;
    background: rgba(15, 20, 40, 0.95);
    border: 2px solid #ff3366;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(255, 51, 102, 0.4);
    z-index: 1000;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.chat-widget.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.chat-header {
    background: linear-gradient(135deg, #ff3366, #ff004c);
    padding: 15px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.chat-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-close {
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.chat-close:hover {
    color: #fff;
    text-shadow: 0 0 10px #fff;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 自定义滚动条 */
.chat-body::-webkit-scrollbar {
    width: 6px;
}
.chat-body::-webkit-scrollbar-thumb {
    background: rgba(255, 51, 102, 0.5);
    border-radius: 3px;
}

.chat-msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word;
}

.chat-msg.system {
    background: rgba(255, 255, 255, 0.1);
    color: #e0f2fe;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.chat-msg.user {
    background: linear-gradient(135deg, #ff3366, #ff004c);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 51, 102, 0.3);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 51, 102, 0.5);
    color: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    outline: none;
    transition: border-color 0.3s;
}

.chat-input:focus {
    border-color: #ff3366;
}

.chat-send {
    background: #ff3366;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0 15px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.chat-send:hover {
    background: #ff004c;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

/* Survey Modal Styles */
#surveyModal {
    align-items: flex-start;
    padding-top: 5vh; /* 距离顶部的距离 */
}

.survey-content {
    margin: 0 auto; /* 保证水平居中 */
    max-width: 600px;
    padding: 2.5rem;
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2), inset 0 0 20px rgba(255, 0, 127, 0.1);
}

.survey-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.survey-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.survey-header p {
    color: var(--text-color);
    font-size: 0.95rem;
    opacity: 0.8;
}

.survey-form .form-group {
    margin-bottom: 1.8rem;
}

.survey-form label {
    display: block;
    margin-bottom: 0.8rem;
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
    text-align: left;
}

.survey-form .radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-left: 1rem;
}

.survey-form .radio-group label {
    font-size: 0.95rem;
    color: #ccc;
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.survey-form input[type="radio"] {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}

.survey-form textarea,
.survey-form select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.survey-form textarea:focus,
.survey-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.survey-form select option {
    background: #111;
    color: #fff;
}

.survey-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #aaa;
}

.btn-outline:hover {
    border-color: var(--secondary-color);
    color: #fff;
    background: rgba(255, 0, 127, 0.1);
    box-shadow: none;
}

/* Neon Glow Effect (Replaces old glitch) */
.glitch {
    position: relative;
    animation: neon-pulse 4s infinite alternate;
}

@keyframes neon-pulse {
    0%, 100% {
        text-shadow: 
            0 0 2px #fff,
            0 0 5px var(--primary-color),
            0 0 15px var(--primary-color),
            0 0 30px var(--primary-color);
    }
    50% {
        text-shadow: 
            0 0 2px #fff,
            0 0 5px var(--secondary-color),
            0 0 10px var(--secondary-color),
            0 0 20px var(--secondary-color);
    }
}

/* Features Section */
.features {
    padding: 8rem 5%;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.section-title span {
    color: var(--primary-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
    position: relative;
    overflow: hidden;
    border-left: 3px solid var(--primary-color);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color));
    transition: left 0.5s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
    border-color: var(--secondary-color);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    text-shadow: 0 0 15px rgba(255, 0, 127, 0.6);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

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

/* Footer */
footer {
    text-align: center;
    padding: 3rem 5%;
    border-top: 1px solid rgba(255, 0, 127, 0.2);
    background: #020005;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}
.footer-logo span {
    color: var(--primary-color);
}
footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Intro Screen (Mechanical Geometric Unfold) */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #020005;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.mech-loader {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.mech-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.mech-ring-1 {
    width: 200px;
    height: 200px;
    border-top: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    animation: spin 2s linear infinite;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4) inset;
}

.mech-ring-2 {
    width: 150px;
    height: 150px;
    border-left: 3px solid var(--secondary-color);
    border-right: 3px solid var(--secondary-color);
    animation: spin-reverse 1.5s linear infinite;
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.4) inset;
}

.mech-ring-3 {
    width: 250px;
    height: 250px;
    border: 1px dashed rgba(253, 245, 0, 0.4);
    animation: spin 4s linear infinite;
}

.mech-core {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: pulse-core 1s ease-in-out infinite alternate;
    box-shadow: 0 0 20px var(--accent-color);
}

.mech-text {
    position: absolute;
    bottom: -60px;
    font-family: 'Orbitron', 'Noto Sans SC', monospace;
    color: var(--primary-color);
    letter-spacing: 4px;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 10px var(--primary-color);
    animation: text-flicker 0.2s infinite;
    white-space: nowrap;
}

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

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

@keyframes pulse-core {
    0% { transform: scale(0.8) rotate(0deg); opacity: 0.8; }
    100% { transform: scale(1.2) rotate(90deg); opacity: 1; box-shadow: 0 0 40px var(--accent-color); }
}

@keyframes text-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Screen un-fold effect */
.intro-hidden {
    opacity: 0 !important;
    transform: scale(1.5);
    pointer-events: none;
}