/* 共享样式 - Time Auction 赛博朋克风格 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 25%, #0d1a2d 50%, #1a0a2e 75%, #0a0a1a 100%);
    min-height: 100vh;
}

/* Banner 样式 */
.site-banner {
    background: linear-gradient(135deg, #1a0a2e 0%, #0d1a2d 50%, #0a1628 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 255, 255, 0.3), 0 0 40px rgba(255, 0, 128, 0.2);
    overflow: visible;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.banner-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: max-content;
}

.banner-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #00ffff;
    white-space: nowrap;
    flex-shrink: 0;
}

.banner-icon {
    width: 36px;
    height: 36px;
    background: url('../images/logo.png') no-repeat center center;
    background-size: cover;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.banner-title {
    font-size: 1.2em;
    font-weight: bold;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.banner-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.banner-nav a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9em;
    transition: all 0.3s;
    opacity: 0.85;
    white-space: nowrap;
}

.banner-nav a:hover {
    background: rgba(0, 255, 255, 0.15);
    opacity: 1;
    color: #00ffff;
}

.banner-nav a.active {
    background: rgba(255, 0, 128, 0.3);
    opacity: 1;
    color: #ff80bf;
}

.nav-divider {
    color: rgba(0, 255, 255, 0.3);
    margin: 0 5px;
}

.lang-dropdown {
    position: relative;
}

.lang-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    white-space: nowrap;
}

.lang-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 5px;
    background: #1a0a2e;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
    min-width: 150px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.2);
    z-index: 1001;
}

.lang-menu.show {
    display: block;
}

.lang-menu a {
    display: block;
    padding: 12px 16px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s;
}

.lang-menu a:hover {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
}

.lang-menu a.active {
    background: rgba(255, 0, 128, 0.2);
    color: #ff80bf;
}

/* 主内容区域 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 卡片样式 */
.card {
    background: rgba(20, 20, 40, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #00ffff;
}

h2 {
    color: #ff0080;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 0, 128, 0.5);
    text-shadow: 0 0 10px rgba(255, 0, 128, 0.3);
}

/* 标题与按钮并排 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 0, 128, 0.5);
    flex-wrap: wrap;
    gap: 15px;
}

.card-header h2 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.store-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.appstore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #00ffff, #0080ff);
    color: #000;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.appstore-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
}

.appstore-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

h3 {
    color: #00ffff;
    margin: 20px 0 10px;
}

/* 列表样式 */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

ul li:before {
    content: ">";
    color: #00ffff;
    font-weight: bold;
    position: absolute;
    left: 10px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* 步骤列表 */
ol.steps {
    padding-left: 20px;
    counter-reset: step-counter;
    list-style: none;
}

ol.steps li {
    padding: 10px 0 10px 35px;
    position: relative;
    counter-increment: step-counter;
}

ol.steps li:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 10px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff0080, #8000ff);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 0.85em;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.4);
}

/* 按钮样式 */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #00ffff, #ff0080);
    color: #000;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px 5px;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 30px rgba(0, 255, 255, 0.6);
}

.cta-button.secondary {
    background: linear-gradient(135deg, #ff0080, #8000ff);
}

.cta-button.secondary:hover {
    box-shadow: 0 5px 30px rgba(255, 0, 128, 0.6);
}

.button-group {
    text-align: center;
    margin: 30px 0;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.5);
}

footer a {
    color: #00ffff;
}

/* 高亮样式 */
.highlight {
    background: rgba(0, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    color: #00ffff;
}

.warning {
    color: #ff0080;
    font-weight: bold;
}

.success {
    color: #00ff80;
    font-weight: bold;
}

/* 主页头部 */
.page-header {
    text-align: center;
    padding: 40px 0;
}

.page-header h1 {
    color: #00ffff;
    text-shadow:
        0 0 10px rgba(0, 255, 255, 0.8),
        0 0 20px rgba(0, 255, 255, 0.6),
        0 0 40px rgba(0, 255, 255, 0.4);
    letter-spacing: 2px;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    background: url('../images/logo.png') no-repeat center center;
    background-size: cover;
    margin: 0 auto 20px;
    box-shadow:
        0 0 0 4px rgba(0, 255, 255, 0.5),
        0 0 20px 10px rgba(0, 255, 255, 0.3),
        0 0 40px 20px rgba(255, 0, 128, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 255, 0.6);
}

.tagline {
    font-size: 1.2em;
    color: #ff80bf;
    text-shadow:
        0 0 8px rgba(255, 0, 128, 0.6),
        0 0 16px rgba(255, 0, 128, 0.4);
    letter-spacing: 1px;
}

/* 功能网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.feature-item:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.feature-item .icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.feature-item h4 {
    color: #00ffff;
    margin-bottom: 8px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.feature-item p {
    font-size: 0.9em;
    color: #a0a0a0;
}

/* 玩家数量展示 */
.player-count {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.player-option {
    text-align: center;
    padding: 20px;
    background: rgba(255, 0, 128, 0.1);
    border: 1px solid rgba(255, 0, 128, 0.3);
    border-radius: 16px;
    transition: all 0.3s;
    min-width: 100px;
}

.player-option:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
}

.player-option .number {
    font-size: 2.5em;
    font-weight: bold;
    color: #ff0080;
    text-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
}

.player-option .label {
    color: #a0a0a0;
    font-size: 0.9em;
}

/* 场景网格 */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.scenario-item {
    background: rgba(128, 0, 255, 0.1);
    border: 1px solid rgba(128, 0, 255, 0.3);
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    color: #c080ff;
    transition: all 0.3s;
}

.scenario-item:hover {
    background: rgba(128, 0, 255, 0.2);
    box-shadow: 0 0 15px rgba(128, 0, 255, 0.3);
}

/* 响应式 */
@media (max-width: 768px) {
    .banner-container {
        padding: 8px 10px;
        gap: 8px;
    }

    .banner-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }

    .banner-title {
        font-size: 0.95em;
    }

    .banner-nav {
        gap: 2px;
    }

    .banner-nav a {
        padding: 6px 8px;
        font-size: 0.75em;
    }

    .nav-divider {
        margin: 0 2px;
        font-size: 0.7em;
    }

    .lang-btn {
        padding: 6px 8px;
        font-size: 0.75em;
        gap: 4px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .scenarios-grid {
        grid-template-columns: 1fr;
    }

    .player-count {
        flex-wrap: wrap;
        gap: 15px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .store-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .banner-container {
        padding: 6px 8px;
        gap: 6px;
    }

    .banner-brand {
        gap: 6px;
    }

    .banner-icon {
        width: 24px;
        height: 24px;
        border-radius: 5px;
    }

    .banner-title {
        font-size: 0.85em;
    }

    .banner-nav a {
        padding: 5px 6px;
        font-size: 0.7em;
    }

    .nav-divider {
        display: none;
    }

    .lang-btn {
        padding: 5px 6px;
        font-size: 0.7em;
    }

    .lang-menu {
        right: 0;
        min-width: 120px;
    }

    .lang-menu a {
        padding: 10px 12px;
        font-size: 0.9em;
    }

    h1 {
        font-size: 1.8em;
    }

    .card {
        padding: 20px;
    }
}

/* 反馈表单样式 */
.feedback-form {
    margin-top: 20px;
    position: relative;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #00ffff;
}

.form-group .required {
    color: #ff0080;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    background: rgba(10, 10, 30, 0.8);
    color: #e0e0e0;
    transition: all 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300ffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-hint {
    font-size: 0.85em;
    color: #808080;
    margin-top: 5px;
}

.char-count {
    font-size: 0.85em;
    color: #808080;
    text-align: right;
    margin-top: 5px;
}

.char-count.over-limit {
    color: #ff0080;
    font-weight: bold;
}

/* 提示消息样式 */
.feedback-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(0, 255, 128, 0.2);
    color: #00ff80;
    border: 1px solid rgba(0, 255, 128, 0.4);
}

.alert-error {
    background-color: rgba(255, 0, 128, 0.2);
    color: #ff80bf;
    border: 1px solid rgba(255, 0, 128, 0.4);
}

/* 表单按钮样式 */
.feedback-form .cta-button {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
}

.feedback-form .cta-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
