/* 移动端优先的登录样式 */
:root {
    --primary-color: #07c160;
    --primary-dark: #05a04f;
    --bg-color: #f7f8fa;
    --text-main: #333333;
    --text-sub: #999999;
    --border-radius: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', 'miui', 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
    background-color: #ffffff;
    color: var(--text-main);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* 防止横向滚动 */
}

/* --- 登录页特定样式 --- */
.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 32px;
    background: linear-gradient(180deg, rgba(7, 193, 96, 0.05) 0%, rgba(255, 255, 255, 0) 40%);
}

.login-header {
    margin-top: 40px;
    margin-bottom: 60px;
}

.logo-wrap {
    width: 72px;
    height: 72px;
    background: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 20px rgba(7, 193, 96, 0.2);
}

.logo-wrap svg {
    width: 40px;
    height: 40px;
    color: white;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.login-header p {
    font-size: 16px;
    color: var(--text-sub);
}

.login-form {
    width: 100%;
}

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

.input-group {
    position: relative;
    background: #f5f7f9;
    border-radius: 16px;
    transition: all 0.3s;
}

.input-group:focus-within {
    background: #ffffff;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.input-group input {
    width: 100%;
    height: 60px;
    padding: 0 20px;
    padding-left: 56px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-main);
    outline: none;
    border-radius: 16px;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #c0c4cc;
    transition: color 0.3s;
}

.input-group:focus-within .input-icon {
    color: var(--primary-color);
}

.toggle-password {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0c4cc;
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-sub);
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #ddd;
    accent-color: var(--primary-color);
}

.forgot-password {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.btn-login {
    width: 100%;
    height: 56px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 28px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(7, 193, 96, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
}

.btn-login:active {
    transform: scale(0.98);
}

.alert {
    padding: 12px 16px;
    background: #ffebee;
    color: #ff3b30;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.login-footer {
    text-align: center;
    margin-top: auto;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
    color: #cccccc;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* --- 关于/功能说明页特定样式 --- */
.about-page {
    background-color: #f7f8fa;
    height: auto;
    min-height: 100vh;
}

.about-header {
    background: #fff;
    padding: 16px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.btn-back {
    border: none;
    background: transparent;
    color: #333;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
}

.about-content {
    padding: 20px 16px 40px 16px;
}

.hero-section {
    margin-bottom: 30px;
    text-align: center;
    padding: 20px 0;
}

.hero-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 14px;
    color: #999;
    line-height: 1.5;
}

/* 核心功能卡片 */
.core-section {
    margin-bottom: 32px;
}

.section-label {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-left: 10px;
    border-left: 4px solid var(--primary-color);
}

.core-grid {
    display: grid;
    gap: 16px;
}

.core-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.core-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.core-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.bg-blue { background: linear-gradient(135deg, #2196F3, #1976D2); }
.bg-purple { background: linear-gradient(135deg, #9C27B0, #7B1FA2); }
.bg-orange { background: linear-gradient(135deg, #FF9800, #F57C00); }

.core-text h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #333;
}

.core-text p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* 文本盒子 */
.text-box {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.text-box strong {
    color: #333;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

/* 更新日志 */
.update-list {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.update-item {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.update-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.update-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.update-content {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(7, 193, 96, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 10px;
    margin-right: 6px;
}
