/* 胖猫游戏增强系统 - 主要样式文件 */

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #333f6c, #4a5a8a);
    min-height: 100vh;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 防止移动端输入时页面缩放 */
input, textarea, select {
    font-size: 16px;
}

/* 只对文本输入框、密码框等移除默认外观，保留复选框和单选框的原生外观 */
input[type="text"], 
input[type="password"], 
input[type="email"], 
input[type="number"], 
input[type="tel"], 
input[type="url"], 
input[type="search"], 
textarea, 
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* 通用容器 */
.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
p{
    font-size: 10px;
    margin-bottom: 6px;
}
/* 圆形logo */
.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* 网站标题 */
.site-title {
    text-align: center;
    color: white;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 版本号 */
.version {
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin-bottom: 40px;
}

/* 输入框容器 */
.input-container {
    position: relative;
    margin-bottom: 20px;
}

.input-container .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

.input-container input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: none;
    border-radius: 25px;
    background: rgba(255,255,255,0.9);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.input-container input:focus {
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* 按钮样式 */
.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

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

.btn-primary {
    background: linear-gradient(135deg, #3b9cff, #2980b9);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #5bc724, #27ae60);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #e47470, #e74c3c);
    color: white;
}

/* 提示框 */
.notice-box {
    background: rgba(255,255,255,0.9);
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.notice-box .title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* 黄色提示文字 */
.yellow-text {
    color: #f1c40f;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 顶部导航栏 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(51, 63, 108, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* 内容区域（考虑顶部导航栏） */
.content-area {
    margin-top: 60px;
    padding: 20px;
}

/* 游戏图片 */
.game-image {
    width: 100%;
/*    max-width: 300px;*/
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin: 0 auto 15px;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* 到期时间显示 */
.expire-time {
    color: #f1c40f;
    font-size: 14px;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 滚动通知栏 */
.notice-bar {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.notice-bar .icon {
    float: left;
    color: #f1c40f;
    margin-right: 10px;
    font-size: 16px;
}

.notice-bar .text {
    color: white;
    font-size: 14px;
    white-space: nowrap;
    animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 功能区块 */
.function-block {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.function-block .title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.function-block .title.red {
    color: #e74c3c;
}

.function-block .title.purple {
    color: #9b59b6;
}

/* 选项列表 */
.option-list {
    list-style: none;
}

.option-list li {
    margin-bottom: 10px;
}

.option-list input[type="checkbox"],
.option-list input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.option-list label {
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.option-list .orange {
    color: #e67e22;
}

.option-list .green {
    color: #27ae60;
}

.option-list .black {
    color: #333;
}

.option-list .blue {
    color: #3498db;
}

/* 底部菜单 */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
/*    padding: 10px 0;*/
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-menu .menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
    padding: 5px;
}

.bottom-menu .menu-item:hover,
.bottom-menu .menu-item.active {
    color: #333f6c;
}

.bottom-menu .menu-item .icon {
    font-size: 20px;
/*    margin-bottom: 5px;*/
}

.bottom-menu .menu-item .text {
    font-size: 12px;
}

/* 进度条 */
.progress-container {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b9cff, #2980b9);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    color: white;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 90%;
    max-height: 80%;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.modal-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .site-title {
        font-size: 28px;
    }
    
    .function-block {
        padding: 15px;
    }
    
    .modal-content {
        padding: 20px;
        margin: 20px;
        width: 80%;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 内容底部留白（避免被底部菜单遮挡） */
.content-bottom-padding {
    padding-bottom: 80px;
}

