:root {
    --bg-color: #1a1b26;
    --card-bg: #24252e;
    --text-color: #ffffff;
    --accent-color: #a78bfa;
    --accent-hover: #8b5cf6;
    --nav-hover: #f97316;
    --progress-bg: #374151;
    --progress-fill: #22c55e;
    --input-bg: #1f2937;
    --border-color: #374151;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Global Styles */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0; /* Remove horizontal padding as width will handle it */
    background-color: transparent; /* Or darker if needed */
    position: relative; /* For mobile menu positioning */
    width: 70%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .navbar {
        width: 85%;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 95%;
        padding: 1rem 1rem; /* Restore padding for mobile if needed, or keep width control */
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.3rem !important;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-color);
}

.nav-links a.active {
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--accent-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 30px;
}

.btn-login {
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

/* Home Page */
.hero {
    text-align: center;
    padding: 0rem 1rem 3rem 1rem;
}

.shuffle-logo-large {
    width: 70%;
    max-width: 1200px;
    margin: 0 auto 1rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shuffle-logo-large img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1024px) {
    .shuffle-logo-large {
        width: 85%;
    }
}

@media (max-width: 768px) {
    .shuffle-logo-large {
        width: 95%;
    }
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 1rem;
    text-transform: none;
    letter-spacing: 1px;
    
    /* Grid Layout for alignment */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    
    /* Width constraints matching other containers */
    width: 70%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.subtitle > :nth-child(1) {
    justify-self: start;
}

.subtitle > :nth-child(2) {
    justify-self: center;
    text-align: center;
}

.subtitle > :nth-child(3) {
    justify-self: end;
}

.subtitle-text {
    font-weight: 800;
    letter-spacing: 2px;
}

@media (max-width: 1024px) {
    .subtitle {
        width: 85%;
    }
}

@media (max-width: 768px) {
    .subtitle {
        width: 95%;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
}

.promo-box {
    border: 2px dashed #a78bfa;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    min-width: 200px;
    text-align: center;
}

.promo-box:hover {
    background: rgba(167, 139, 250, 0.1);
    border-color: #c4b5fd;
}

.promo-box span {
    text-transform: none;
}

/* Tooltip styles removed as requested */


.cards-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.card-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #d1d5db;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 9999px; /* Pill shape */
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.card-footer {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Calculator Page */
.calculator-container {
    max-width: 600px;
    margin: 0.5rem auto 2rem auto;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
}

.calc-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.calc-subtitle {
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

input[type="range"] {
    flex-grow: 1;
    height: 8px;
    background: var(--progress-bg);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: linear-gradient(var(--progress-fill), var(--progress-fill));
    background-size: 0% 100%;
    background-repeat: no-repeat;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--text-color);
    border-radius: 50%;
    cursor: pointer;
}

.number-input-container {
    background-color: #333;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

input[type="number"] {
    background: transparent;
    border: none;
    color: white;
    width: 50px;
    text-align: right;
    font-size: 1rem;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.percentage-display {
    background-color: #333;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 700;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.percentage-display input {
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    width: 55px;
    text-align: right;
    outline: none;
    padding-right: 2px;
}

select {
    width: 100%;
    background-color: #333; /* Darker bg for select */
    color: white;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

.level-selector-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.level-selector-row label {
    white-space: nowrap;
    margin-bottom: 0;
    justify-self: start;
}

.level-selector-row select {
    width: auto;
    min-width: 150px;
    justify-self: center;
}

.share-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    white-space: nowrap;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn:hover {
    background-color: var(--accent-hover);
}

@media (max-width: 600px) {
    .level-selector-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    
    .level-selector-row label {
        justify-self: start;
        margin-bottom: 0.2rem;
    }

    .level-selector-row select {
        width: 100%;
        min-width: 0;
    }

    .share-btn {
        width: 100%;
    }
}

.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1rem;
}

.results-table tr {
    border-bottom: 1px solid var(--border-color);
}

.results-table td {
    padding: 0.5rem 0;
    vertical-align: middle;
}

.results-table td:first-child {
    color: #9ca3af;
    font-size: 1rem;
}

.results-table td:last-child {
    text-align: right;
    font-weight: 700;
    font-size: 1.1rem;
    color: #60a5fa; /* Blueish for values */
}

.value-highlight {
    color: #60a5fa;
}

/* Rewards Section */
.rewards-container {
    width: 70%;
    max-width: 1200px; /* 防止在大屏幕上过宽 */
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1rem 2rem 2rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@media (max-width: 1024px) {
    .rewards-container {
        width: 85%;
    }
}

@media (max-width: 768px) {
    .rewards-container {
        width: 95%;
    }
}

.rewards-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rewards-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.reward-card {
    background-color: var(--card-bg);
    border: 1px solid #374151;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: 200px;
    justify-content: space-between;
}

.reward-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.reward-icon-large {
    font-size: 4rem;
    margin: 1rem 0;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.reward-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.reward-timer {
    background-color: #1a1b26;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 0.8rem 0.2rem;
    font-family: 'Inter', monospace;
    font-weight: 700;
    color: #e5e7eb;
    width: 100%;
    text-align: center;
    letter-spacing: 0;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer */
.site-footer {
    margin-top: 0.5rem;
    text-align: center;
    padding-bottom: 2rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-line {
    height: 1px;
    background-color: #374151;
    margin: 0 auto 1rem auto;
    width: 90%;
    max-width: 1200px;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-content span {
    white-space: nowrap;
}

/* Mobile Responsive Styles */
.mobile-logo {
    display: none;
}
.hamburger-menu {
    display: none;
}
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-logo {
        display: none !important;
    }
    .mobile-logo {
        display: block !important;
    }
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 2000;
        padding: 10px;
    }
    .hamburger-menu span {
        width: 25px;
        height: 3px;
        background-color: white;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Below navbar */
        left: 0;
        right: 0;
        background-color: var(--card-bg);
        width: 100%;
        min-height: 50vh;
        padding: 2rem;
        border-radius: 10px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.5);
        z-index: 1000;
        gap: 1.5rem;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        width: 100%;
    }
    
    .btn-login-mobile {
        background-color: var(--accent-color);
        color: white !important;
        padding: 0.8rem 2rem;
        border-radius: 4px;
        text-decoration: none;
        font-weight: 800;
        display: inline-block;
        text-align: center;
        margin-top: 0.5rem;
        min-width: 200px;
    }
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    padding: 1rem 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0.5rem 0;
}
