/**
 * 命盘计算器 - 全局样式
 * 
 * 设计风格：金属质感 + 简洁商务
 * 移动端优先
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* 页面容器 */
.input-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px; /* 为底部按钮留空间 */
}

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
}

.page-header h1 {
    font-size: 28px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 用户信息头部 */
.user-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.username-display {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.admin-link,
.profile-link,
.logout-link {
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    transition: background 0.3s;
    font-size: 13px;
}

.admin-link:hover,
.profile-link:hover,
.logout-link:hover {
    background: rgba(255,255,255,0.3);
}

.admin-link {
    background: rgba(255,193,7,0.3);
}

.admin-link:hover {
    background: rgba(255,193,7,0.5);
}

.logout-link {
    background: rgba(244,67,54,0.3);
}

.logout-link:hover {
    background: rgba(244,67,54,0.5);
}

.history-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    transition: background 0.3s;
}

.history-link:hover {
    background: rgba(255,255,255,0.3);
}

/* 表单容器 */
.form-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* 表单组 */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
    font-size: 15px;
}

/* 输入框 */
.form-input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fafafa;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 下拉选择框 */
.form-select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.form-select:focus {
    outline: none;
    border-color: #667eea;
}

/* 带按钮的输入框 */
.input-with-btn {
    display: flex;
    gap: 10px;
}

.input-with-btn .form-input {
    flex: 1;
}

.btn-suiyuan {
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s;
}

.btn-suiyuan:hover {
    transform: translateY(-2px);
}

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

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s;
}

.radio-label:hover {
    background: #e9ecef;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
}

/* 生肖筛选 */
.zodiac-filter {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.zodiac-label {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

/* 底部按钮 */
.bottom-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    display: flex;
    gap: 15px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.btn-reset {
    flex: 1;
    padding: 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-reset:hover {
    transform: translateY(-2px);
}

.btn-submit {
    flex: 2;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
    font-weight: 600;
}

.btn-submit:hover {
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .input-page {
        padding: 15px;
    }
    
    .page-header h1 {
        font-size: 22px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .bottom-buttons {
        padding: 15px;
    }
}

/* 金属质感背景 */
.metallic-bg {
    background: linear-gradient(
        135deg,
        #e8e8e8 0%,
        #f5f5f5 25%,
        #d0d0d0 50%,
        #f0f0f0 75%,
        #e0e0e0 100%
    );
}

/* 卡片阴影 */
.card-shadow {
    box-shadow: 
        0 4px 6px rgba(0,0,0,0.05),
        0 1px 3px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.5);
}

/* 轻拟物效果 */
.neumorphism {
    background: linear-gradient(145deg, #f0f0f0, #e6e6e6);
    box-shadow: 
        5px 5px 10px #d1d1d1,
        -5px -5px 10px #ffffff;
}

/* 圆角通用类 */
.rounded-lg {
    border-radius: 12px;
}

.rounded-xl {
    border-radius: 16px;
}

.rounded-2xl {
    border-radius: 20px;
}
