:root {
    --primary-color: #C9184B;
    --primary-glow: rgba(201, 24, 75, 0.4);
    --secondary-color: #F0F0F0;
    --bg-dark: #0a0b10;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #ffffff;
    --text-muted: #8b949e;
    --border-color: rgba(255, 255, 255, 0.08);
}

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

body, html {
    font-family: 'Noto Sans SC', 'Montserrat', -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.glass-effect {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(10, 11, 16, 0.7);
    border-bottom: 1px solid var(--border-color);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 26px;
    object-fit: contain;
}

.text-logo {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 0.05em;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
    margin-bottom: 1px;
}

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

.nav-links a {
    font-size: 0.95rem;
    color: var(--secondary-color);
    opacity: 0.8;
}

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

/* Base Sections */
.section-padding {
    padding: 6rem 2rem;
}

.secondary-bg {
    background-color: #0d0f14;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.divider {
    height: 4px;
    width: 60px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: float 8s infinite alternate;
}

.orb-primary {
    top: 30%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
}

.orb-secondary {
    bottom: 10%;
    right: 20%;
    width: 300px;
    height: 300px;
    background: #4d79ff;
}

.hero-content {
    max-width: 800px;
    animation: fadeUp 1s ease-out forwards;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(201, 24, 75, 0.1);
    border: 1px solid rgba(201, 24, 75, 0.3);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.highlight {
    color: var(--primary-color);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid (Dynamically Rendered) */
.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Contact Section */
.contact {
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem;
}

.contact-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer Element */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
    background: #06070a;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 350px;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.footer-col h4 {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

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

.footer-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    height: 100%;
}

.footer-contact {
    padding-left: 1rem;
}

.footer-contact h4 {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-item-box {
    display: flex;
    flex-direction: column;
    padding: 0.8rem 0; /* 移除左侧内边距以对齐二维码 */
}

.contact-value-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.2rem;
}

.contact-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
    opacity: 0.8;
}

.contact-value {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.4rem;
    margin-left: calc(16px + 0.6rem); /* 避开图标宽度对齐文本 */
}

.footer-qr-group {
    grid-column: span 2;
    display: flex;
    gap: 2.5rem;
    margin-top: 1rem;
}

.footer-qr-item {
    text-align: center;
}

.footer-qr-item img {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.footer-qr-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: #4c5258;
    font-size: 0.8rem;
    line-height: 1.8;
}

.footer-bottom a {
    color: #4c5258;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes float {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-divider { display: none; }
    .footer-contact { padding-left: 0; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .nav-links { 
        display: flex;
        gap: 1rem;
    }
    .nav-links a {
        font-size: 0.8rem;
    }
    .footer-nav-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-matrix { grid-template-columns: 1fr; }
    .footer-qr-group { grid-column: span 1; }
}
/* Contact Form */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px var(--primary-glow);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--primary-glow);
    filter: brightness(1.1);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.2);
}

.form-message.error {
    display: block;
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.2);
}

@media (max-width: 768px) {
    .contact-container {
        padding: 2rem 1.5rem;
    }
}
