:root {
    --primary-black: #0d0d0d;
    --dark-gray: #1a1a1a;
    --gold: #c9a962;
    --gold-light: #e8d59a;
    --dark-red: #8b2635;
    --red-light: #b53a4a;
    --text-light: #e8e8e8;
    --text-muted: #888888;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif SC', serif;
    background-color: var(--primary-black);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.font-calligraphy {
    font-family: 'Ma Shan Zheng', cursive;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
    color: var(--gold);
}

.logo-text {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 24px;
    color: var(--gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s;
}

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

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

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

.banner {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-black);
}

.banner-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bagua-bg {
    width: 100%;
    height: 100%;
    opacity: 0.4;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.9) 0%, rgba(13, 13, 13, 0.7) 50%, rgba(13, 13, 13, 0.9) 100%);
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.banner-logo {
    font-size: 80px;
    color: var(--gold);
    margin-bottom: 20px;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.banner-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 56px;
    color: var(--gold);
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(201, 169, 98, 0.5);
}

.banner-subtitle {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.banner-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.banner-tags span {
    padding: 8px 16px;
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 20px;
    font-size: 14px;
    color: var(--gold-light);
    background: rgba(201, 169, 98, 0.1);
}

.banner-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-primary {
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--gold), #a68c4a);
    color: var(--primary-black);
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(201, 169, 98, 0.6);
}

.btn-secondary {
    padding: 14px 36px;
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--gold);
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(201, 169, 98, 0.1);
    color: var(--gold);
}

.banner-note {
    font-size: 12px;
    color: var(--text-muted);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-muted);
}

.features {
    padding: 100px 20px;
    background: var(--primary-black);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(145deg, #1a1a1a, #121212);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
}

.feature-card:hover .card-glow {
    opacity: 1;
}

.card-icon {
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.advantages {
    padding: 100px 20px;
    background: var(--dark-gray);
}

.advantages-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.advantage-item {
    text-align: center;
    padding: 30px;
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--gold);
}

.advantage-item h3 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 15px;
}

.advantage-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

.screenshots {
    padding: 100px 20px;
    background: var(--primary-black);
}

.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 100%;
    text-align: center;
    padding: 20px;
}

.phone-mockup {
    display: inline-block;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 10px;
    border: 8px solid #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.phone-screen {
    width: 300px;
    height: 626px;
    border-radius: 30px;
    overflow: hidden;
    background: var(--primary-black);
    position: relative;
}

.screen-content {
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screen-header {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 20px;
    color: var(--gold);
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
    margin-bottom: 20px;
}

.bazhi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    flex: 1;
}

.bazhi-item {
    background: rgba(201, 169, 98, 0.05);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bazhi-item span:first-child {
    font-size: 12px;
    color: var(--text-muted);
}

.bazhi-item span:last-child {
    font-size: 18px;
    font-weight: 600;
    color: var(--gold);
}

.bazhi-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(201, 169, 98, 0.2);
}

.bazhi-info .label {
    color: var(--gold);
    font-size: 14px;
}

.bazhi-info span:last-child {
    color: var(--text-light);
    font-size: 14px;
}

.ziwei-chart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ziwei-center {
    width: 80px;
    height: 80px;
    background: rgba(201, 169, 98, 0.2);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 18px;
    color: var(--gold);
    z-index: 2;
}

.ziwei-ring {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ziwei-sector {
    position: absolute;
    font-size: 12px;
    color: var(--gold);
}

.ziwei-sector:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.ziwei-sector:nth-child(2) { top: 25%; right: 5%; }
.ziwei-sector:nth-child(3) { bottom: 25%; right: 5%; }
.ziwei-sector:nth-child(4) { bottom: 0; left: 50%; transform: translateX(-50%); }
.ziwei-sector:nth-child(5) { bottom: 25%; left: 5%; }
.ziwei-sector:nth-child(6) { top: 25%; left: 5%; }
.ziwei-sector:nth-child(7) { top: 50%; left: 0; transform: translateY(-50%); }
.ziwei-sector:nth-child(8) { top: 50%; right: 0; transform: translateY(-50%); }

.luopan-dial {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.luopan-center {
    font-size: 40px;
    color: var(--gold);
    z-index: 2;
}

.luopan-ring {
    position: absolute;
    display: flex;
    justify-content: space-around;
}

.ring-outer {
    width: 220px;
    height: 220px;
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 50%;
    padding: 10px;
}

.ring-inner {
    width: 150px;
    height: 150px;
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 50%;
    padding: 5px;
}

.luopan-ring span {
    font-size: 12px;
    color: var(--gold);
}

.calendar-month {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calendar-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 18px;
    color: var(--gold);
    margin-bottom: 20px;
}

.calendar-days {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.day-item {
    width: 50px;
    height: 50px;
    background: rgba(201, 169, 98, 0.05);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.day-item.active {
    background: rgba(201, 169, 98, 0.2);
    border-color: var(--gold);
}

.day-item span:first-child {
    font-size: 10px;
    color: var(--text-muted);
}

.day-item.active span:first-child {
    color: var(--gold);
}

.day-item span:last-child {
    font-size: 16px;
    color: var(--text-light);
}

.calendar-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(201, 169, 98, 0.2);
}

.calendar-info .label {
    color: var(--gold);
    font-size: 14px;
}

.calendar-info span:last-child {
    color: var(--text-light);
    font-size: 13px;
}

.carousel-caption {
    margin-top: 20px;
    font-size: 16px;
    color: var(--gold);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(201, 169, 98, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: rgba(201, 169, 98, 0.4);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-indicators span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(201, 169, 98, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicators span.active {
    background: var(--gold);
    transform: scale(1.2);
}

.download {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--primary-black) 0%, var(--dark-gray) 100%);
    text-align: center;
}

.download-content {
    max-width: 600px;
    margin: 0 auto;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px 30px;
    border-radius: 15px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.download-btn.android {
    background: linear-gradient(135deg, #20b2aa, #178a85);
    color: white;
}

.download-btn.android:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(32, 178, 170, 0.4);
}

.download-btn.ios {
    background: linear-gradient(135deg, #8b8b8b, #6b6b6b);
    color: white;
}

.download-btn.ios:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 139, 139, 0.4);
}

.btn-icon {
    font-size: 32px;
}

.btn-text {
    text-align: left;
}

.btn-title {
    display: block;
    font-weight: 600;
    font-size: 18px;
}

.btn-version {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.download-qrcode {
    margin-top: 30px;
}

.qrcode-box {
    display: inline-block;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.qrcode-box img,
.qrcode-svg {
    width: 200px;
    height: 200px;
}

.qrcode-box p {
    margin-top: 10px;
    color: var(--gold);
    font-size: 14px;
}

.faq {
    padding: 100px 20px;
    background: var(--primary-black);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: var(--dark-gray);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(201, 169, 98, 0.1);
}

.faq-icon {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 24px;
    color: var(--gold);
    min-width: 30px;
}

.faq-text {
    flex: 1;
    font-size: 16px;
    color: var(--text-light);
}

.faq-arrow {
    color: var(--gold);
    font-size: 12px;
    transition: transform 0.3s;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    background: var(--primary-black);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
}

.faq-answer span:first-child {
    margin-right: 15px;
}

.faq-answer span:last-child {
    color: var(--text-muted);
    font-size: 14px;
}

.footer {
    background: var(--dark-gray);
    padding: 50px 20px;
    text-align: center;
    border-top: 1px solid rgba(201, 169, 98, 0.2);
}

.footer-disclaimer {
    max-width: 800px;
    margin: 0 auto 30px;
}

.footer-disclaimer p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 2;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    text-decoration: none;
    color: var(--gold);
    font-size: 14px;
}

.footer-links span {
    color: var(--text-muted);
    margin: 0 10px;
}

.footer-copyright p {
    font-size: 12px;
    color: var(--text-muted);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--dark-gray);
    margin: 10% auto;
    padding: 30px;
    border: 1px solid var(--gold);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--gold);
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s;
}

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

.modal-body h3 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 20px;
}

.modal-body ul {
    list-style: none;
    padding: 0;
}

.modal-body li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(201, 169, 98, 0.1);
    color: var(--text-light);
    font-size: 14px;
}

.modal-body li:last-child {
    border-bottom: none;
}

.download-modal-body {
    text-align: center;
}

.download-modal-body h3 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 20px;
}

.qrcode-large img,
.qrcode-large .qrcode-svg {
    width: 300px;
    height: 300px;
    margin-bottom: 20px;
}

.platform-tips {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.platform-tips span {
    padding: 5px 15px;
    background: rgba(201, 169, 98, 0.2);
    border-radius: 15px;
    font-size: 12px;
    color: var(--gold);
}

.wechat-tip {
    background: rgba(139, 38, 53, 0.2);
    border: 1px solid var(--dark-red);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.wechat-tip p {
    color: var(--red-light);
    font-size: 14px;
    margin: 5px 0;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        background: rgba(13, 13, 13, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        transition: left 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .banner-title {
        font-size: 40px;
    }

    .banner-subtitle {
        font-size: 18px;
    }

    .banner-tags {
        gap: 8px;
    }

    .banner-tags span {
        font-size: 12px;
        padding: 6px 12px;
    }

    .banner-buttons {
        flex-direction: column;
        align-items: center;
    }

    .phone-screen {
        width: 220px;
        height: 458px;
    }

    .screen-content {
        padding: 15px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-btn {
        flex-direction: column;
        text-align: center;
    }

    .btn-text {
        text-align: center;
    }

    .section-header h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .banner-logo {
        font-size: 60px;
    }

    .banner-title {
        font-size: 32px;
    }

    .feature-card {
        padding: 20px;
    }

    .modal-content {
        margin: 5% auto;
        padding: 20px;
    }

    .qrcode-large img {
        width: 220px;
        height: 220px;
    }
}