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

body {
    font-family: 'Noto Sans TC', sans-serif;
    overflow: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.1) 70%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #00FF7F;
    text-shadow: 
        0 0 6px rgba(0, 255, 127, 0.9),
        0 0 12px rgba(0, 255, 127, 0.6),
        1px 1px 2px rgba(0, 0, 0, 0.9);
    margin-bottom: 0;
    line-height: 1.7;
    max-width: 400px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 500;
    color: #FFD700;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 5px;
    text-shadow: 
        0 0 6px rgba(255, 215, 0, 0.9),
        0 0 12px rgba(255, 215, 0, 0.6),
        1px 1px 2px rgba(0, 0, 0, 0.9);
    margin-top: 15px;
    line-height: 1.7;
    max-width: 500px;
}

/* Navigation Buttons */
.nav-buttons {
    position: fixed;
    top: 55px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
    align-items: flex-end;
}

.nav-btn {
    padding: 3px 8px;
    background: rgba(255, 215, 0, 0.95);
    border: none;
    color: #000000;
    font-size: 7px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(255, 215, 0, 0.4);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.nav-btn:hover {
    transform: translateX(-3px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.6);
    background: rgba(255, 215, 0, 0.95);
}

.nav-btn.highlight {
    background: rgba(255, 107, 53, 0.95);
}

/* Language Switch */
.lang-switch {
    position: fixed;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
    z-index: 100;
}

.lang-btn {
    padding: 3px 8px;
    background: rgba(255, 215, 0, 0.95);
    border: none;
    color: #000000;
    font-size: 7px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.lang-btn:hover, .lang-btn.active {
    background: rgba(255, 215, 0, 0.95);
    color: #000;
}

/* Prediction Content */
.prediction-container {
    position: fixed;
    top: 120px;
    left: 15px;
    width: 300px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prediction-card {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.6);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
}

.race-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.race-number {
    font-size: 14px;
    font-weight: 700;
    color: #2e7d32;
}

.race-info {
    font-size: 9px;
    color: #555;
    text-align: right;
    line-height: 1.2;
}

.race-prize {
    font-size: 8px;
    color: #333;
}

.horse-list {
    margin-bottom: 10px;
}

.horse-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding: 3px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
}

.horse-number {
    font-size: 12px;
    font-weight: 700;
    color: #00FF7F;
    min-width: 25px;
    text-align: center;
}

.horse-name {
    font-size: 9px;
    color: #FFF;
    flex: 1;
    margin: 0 5px;
    line-height: 1.2;
}

.horse-rating {
    font-size: 8px;
    color: #FFD700;
    min-width: 35px;
}

.horse-odds {
    font-size: 8px;
    color: #FFF;
    min-width: 80px;
    text-align: right;
}

.horse-popular {
    font-size: 8px;
    color: #FF6B35;
    margin-left: 5px;
}

.prediction-recommendation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
    padding: 2px 5px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
}

.label {
    font-size: 8px;
    font-weight: 700;
    color: #FFD700;
    min-width: 60px;
}

.content {
    font-size: 8px;
    color: #FFF;
    text-align: right;
    line-height: 1.2;
}

/* Racecard Content - 磨砂白背景风格 */
.racecard-container {
    position: fixed;
    top: 120px;
    left: 15px;
    width: 340px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.racecard-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.horse-table {
    margin-top: 10px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    font-size: 7px;
    font-weight: 700;
    color: #333;
}

.table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    font-size: 6px;
    color: #000;
}

.col-number {
    width: 22px;
    text-align: center;
    color: #333;
}

.col-name {
    flex: 1;
    margin: 0 3px;
    text-align: left;
    color: #000;
    font-weight: 600;
}

.col-rating {
    width: 35px;
    text-align: center;
    color: #333;
}

.col-weight {
    width: 35px;
    text-align: center;
    color: #333;
}

.col-draw {
    width: 30px;
    text-align: center;
    color: #333;
}

.col-jockey {
    width: 50px;
    text-align: center;
    color: #000;
}

.col-trainer {
    width: 50px;
    text-align: center;
    color: #000;
}

.col-odds {
    display: none;
}

/* Stocks Content */
.stocks-container {
    position: fixed;
    top: 120px;
    left: 15px;
    width: 300px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.market-overview {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.market-card {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.6);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.market-name {
    font-size: 12px;
    font-weight: 700;
    color: #FFD700;
}

.market-price {
    font-size: 18px;
    font-weight: 700;
    color: #FFF;
}

.market-change {
    font-size: 10px;
    color: #00FF7F;
    text-align: right;
}

.market-change-red {
    font-size: 20px;
    font-weight: 700;
    color: #FF6B35;
    text-align: right;
}

.market-change-green {
    font-size: 20px;
    font-weight: 700;
    color: #00FF7F;
    text-align: right;
}

.stocks-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stock-card {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.6);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
    width: calc(50% - 4px);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stock-name {
    font-size: 8px;
    font-weight: 700;
    color: #FFD700;
    line-height: 1.2;
}

.stock-price {
    font-size: 14px;
    font-weight: 700;
    color: #FFF;
}

.stock-change {
    font-size: 7px;
    color: #00FF7F;
    text-align: right;
}

.stock-change-red {
    font-size: 7px;
    color: #FF6B35;
    text-align: right;
}

.stock-change-green {
    font-size: 7px;
    color: #00FF7F;
    text-align: right;
}

.stock-info {
    font-size: 6px;
    color: #FFF;
    margin-top: 5px;
    text-align: right;
}

/* Membership Content */
.membership-container {
    position: fixed;
    top: 120px;
    left: 15px;
    width: 300px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.6);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-title {
    font-size: 16px;
    font-weight: 700;
    color: #FFD700;
    text-align: center;
    margin-bottom: 5px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.form-group label {
    font-size: 10px;
    font-weight: 700;
    color: #FFD700;
}

.form-group input {
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.6);
    border-radius: 4px;
    font-size: 10px;
    color: #000;
}

.login-btn {
    padding: 8px 12px;
    background: rgba(255, 215, 0, 0.95);
    border: none;
    color: #000000;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(255, 215, 0, 0.4);
    margin-top: 5px;
}

.login-btn:hover {
    background: rgba(255, 215, 0, 1);
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.6);
}

.register-link {
    font-size: 8px;
    color: #FFF;
    text-align: center;
    margin-top: 5px;
}

.register-link a {
    color: #00FF7F;
    text-decoration: none;
}

.membership-plans {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-card {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.6);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-card.premium {
    border: 2px solid rgba(255, 107, 53, 0.8);
    background: rgba(255, 107, 53, 0.1);
}

.plan-title {
    font-size: 12px;
    font-weight: 700;
    color: #FFD700;
    text-align: center;
}

.plan-price {
    font-size: 24px;
    font-weight: 700;
    color: #00FF7F;
    text-align: center;
}

.plan-tag {
    font-size: 8px;
    font-weight: 700;
    color: #FF6B35;
    text-align: center;
    background: rgba(255, 107, 53, 0.2);
    padding: 3px 8px;
    border-radius: 10px;
    margin: -5px 20px 5px;
}

.plan-features {
    list-style: none;
    font-size: 8px;
    color: #FFF;
    line-height: 1.5;
}

.plan-features li {
    margin-bottom: 2px;
    padding-left: 10px;
    position: relative;
}

.plan-features li::before {
    content: "✓";
    color: #00FF7F;
    position: absolute;
    left: 0;
}

.plan-btn {
    padding: 6px 10px;
    background: rgba(255, 215, 0, 0.95);
    border: none;
    color: #000000;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(255, 215, 0, 0.4);
    margin-top: 5px;
}

.plan-btn.highlight {
    background: rgba(255, 107, 53, 0.95);
}

.plan-btn:hover {
    background: rgba(255, 215, 0, 1);
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.6);
}

.plan-btn.highlight:hover {
    background: rgba(255, 107, 53, 1);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.6);
}
