/* 极简白色风格 - 移动端优先 - 优化版 */

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #fff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
}

/* 极简容器 */
.mobile-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
}

/* 桌面端容器 */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

@media (min-width: 768px) {
    .mobile-container {
        max-width: 500px;
        padding: 20px;
    }
}

/* 极简白色卡片 */
.mobile-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.mobile-header {
    background: #fff;
    color: #333;
    padding: 20px 16px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-header h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 500;
    color: #333;
}

.mobile-header p {
    margin: 6px 0 0 0;
    color: #666;
    font-size: 0.85rem;
}

/* 极简公告 */
.mobile-notice {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    margin-bottom: 16px;
    overflow: hidden;
}

.notice-toggle {
    padding: 12px 16px;
    background: #fafafa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 400;
    color: #666;
    font-size: 0.9rem;
}

.toggle-icon {
    transition: transform 0.2s ease;
    color: #999;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.notice-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
}

.notice-content.expanded {
    max-height: 1000px;
}

.notice-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.notice-text {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.3;
}

/* 极简表单样式 */
.mobile-form {
    padding: 16px;
}

.form-item {
    margin-bottom: 16px;
}

.form-item label {
    display: block;
    margin-bottom: 6px;
    font-weight: 400;
    color: #333;
    font-size: 0.85rem;
}

.mobile-input,
.mobile-select,
.mobile-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background: #fff;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
}

.mobile-input:focus,
.mobile-select:focus,
.mobile-textarea:focus {
    outline: none;
    border-color: #333;
}

.mobile-textarea {
    resize: vertical;
    min-height: 70px;
}

/* 密码输入框 */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 0.9rem;
}

/* 极简价格显示 */
.mobile-price {
    background: #f9f9f9;
    border-radius: 4px;
    padding: 10px 14px;
    margin: 12px 0;
    text-align: center;
    border: 1px solid #eee;
}

.price-label {
    font-size: 0.8rem;
    color: #666;
    margin-right: 6px;
}

.price-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

/* 极简提示 */
.mobile-tip {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 10px 0;
    font-size: 0.8rem;
    color: #666;
}

.mobile-tip a {
    color: #333;
    text-decoration: underline;
    font-weight: 400;
}

/* 极简支付方式 */
.mobile-payment {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.payment-option {
    flex: 1;
    padding: 12px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.payment-option.active {
    border-color: #333;
    background: #333;
    color: white;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option i {
    font-size: 1.2rem;
    margin-bottom: 4px;
    display: block;
}

.payment-option span {
    font-size: 0.8rem;
    font-weight: 400;
}

/* 极简展开功能 */
.expand-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 8px 0;
    color: #666;
    font-weight: 400;
    font-size: 0.85rem;
}

.expand-icon {
    transition: transform 0.2s ease;
    color: #999;
}

.expand-icon.rotated {
    transform: rotate(180deg);
}

.expand-content {
    overflow: hidden;
    transition: max-height 0.2s ease;
    max-height: 0;
}

.expand-content.expanded {
    max-height: 150px;
}

/* 极简提交按钮 */
.mobile-submit {
    width: 100%;
    padding: 14px 16px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 16px;
}

.mobile-submit:hover {
    background: #555;
}

.mobile-submit:active {
    background: #222;
}

.mobile-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 极简特色功能 */
.mobile-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.feature-item {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    padding: 12px 8px;
    text-align: center;
}

.feature-item i {
    font-size: 1.2rem;
    color: #999;
    margin-bottom: 6px;
    display: block;
}

.feature-item span {
    font-size: 0.8rem;
    font-weight: 400;
    color: #666;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 移动端优化 */
@media (max-width: 576px) {
    .mobile-container {
        padding: 12px;
    }
    
    .mobile-card {
        margin-bottom: 12px;
        border: none;
    }
    
    .mobile-notice {
        border: none;
    }
    
    .mobile-input,
    .mobile-select,
    .mobile-textarea {
        font-size: 16px;
    }
    
    .mobile-features {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .feature-item {
        padding: 10px 6px;
    }
}

/* 横屏手机优化 */
@media (max-width: 896px) and (orientation: landscape) {
    .mobile-header {
        padding: 12px 16px;
    }
    
    .mobile-header h1 {
        font-size: 1.3rem;
    }
}
