/* style.css - 跑步科学管理应用样式文件 */

/* CSS变量定义 - 全局颜色主题 */
:root {
    --primary-color: #4CAF50;    /* 主色调：绿色 */
    --secondary-color: #2196F3;  /* 辅助色调：蓝色 */
}

/* 页面主体样式 */
body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background: url('images/22222.jpg') center/cover fixed;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.2);
    animation: backgroundEffect 20s ease-in-out infinite;
    overflow-x: hidden;
}

/* 背景动画关键帧 */
@keyframes backgroundEffect {
    0%, 100% { 
        background-size: 100% 100%;
        background-color: rgba(0, 0, 0, 0.2);
    }
    50% { 
        background-size: 110% 110%;
        background-color: rgba(0, 0, 0, 0.25);
    }
}

/* 页面主体伪元素 */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%);
    animation: particleFloat 15s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* 光晕浮动动画 */
@keyframes particleFloat {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.7;
    }
    50% { 
        transform: translate(30px, -30px) rotate(120deg);
        opacity: 0.9;
    }
}

/* 主界面样式 */
.cover {
    text-align: center;
    padding: 100px 20px;
    color: white;
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
    border-radius: 0 0 50% 50% / 0 0 20px 20px;
    backdrop-filter: blur(5px);
    animation: coverGlow 3s ease-in-out infinite alternate;
}

@keyframes coverGlow {
    0% {
        box-shadow: 0 0 30px rgba(255,255,255,0.1);
    }
    100% {
        box-shadow: 0 0 50px rgba(255,255,255,0.3);
    }
}

/* 标题样式 */
.cover h1 {
    font-size: 4rem;
    font-weight: 800;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 8px;
    background: linear-gradient(45deg, #fff, #4CAF50, #2196F3, #fff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255,255,255,0.5);
    position: relative;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.cover h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin: 15px 0 30px 0;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo样式 */
.logo {
    width: 120px;
    height: auto;
    margin: 0 auto 20px;
    border: 3px solid white;
    background: linear-gradient(45deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    padding: 8px;
    border-radius: 15px;
    position: relative;
    z-index: 10;
    display: block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: logoFloat 3s ease-in-out infinite;
    box-shadow: 0 5px 20px rgba(255,255,255,0.2);
}

.logo:hover {
    transform: rotate(360deg) scale(1.2);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.5);
    border-color: var(--primary-color);
    background: linear-gradient(45deg, rgba(76,175,80,0.3), rgba(33,150,243,0.3));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
}

.logo::before {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border-radius: 20px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: logoRing 3s linear infinite;
    z-index: -1;
}

@keyframes logoRing {
    0% { transform: rotate(0deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: rotate(360deg); opacity: 0; }
}

/* 按钮基础样式 */
button {
    padding: 12px 32px;
    font-size: 1.1rem;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 233, 123, 0.2);
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 233, 123, 0.3);
    background: linear-gradient(135deg, #38f9d7 0%, #43e97b 100%);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(67, 233, 123, 0.2);
}

/* 开始按钮特殊样式 */
#startBtn {
    padding: 18px 56px;
    font-size: 1.5rem;
    background: linear-gradient(45deg, #FF6B6B, #FF8E53, #FF6B6B);
    background-size: 200% 200%;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    animation: btnGradient 3s ease-in-out infinite, btnPulse 2s ease-in-out infinite;
    border: 2px solid rgba(255,255,255,0.3);
}

@keyframes btnGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes btnPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

#startBtn:hover {
    background: linear-gradient(45deg, #FF8E53, #FF6B6B, #FF8E53);
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.5);
    border-color: rgba(255,255,255,0.5);
}

#startBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

#startBtn:hover::before {
    left: 100%;
}

/* 表单按钮样式 */
form button[type="submit"] {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.2);
    width: 100%;
    margin-top: 15px;
}

form button[type="submit"]:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.3);
}

/* 导航按钮样式 */
.sub-nav button {
    padding: 14px 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    margin: 8px;
}

.sub-nav button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px) scale(1.03);
}

.sub-nav button.active {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.2);
    color: #333;
    font-weight: 600;
}

/* 浮动元素样式 */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-circle {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3));
    border: 2px solid rgba(255,255,255,0.2);
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(5px);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-15px) rotate(270deg);
        opacity: 0.9;
    }
}

/* 滚动指示器样式 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255,255,255,0.8);
    border-bottom: 2px solid rgba(255,255,255,0.8);
    transform: rotate(45deg);
    animation: arrowFade 2s infinite;
}

.scroll-arrow:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-arrow:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes arrowFade {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

/* 登录弹窗样式 */
.login-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('images/22222.jpg') center/cover;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.login-box {
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 32px 28px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-box h2 {
    margin-bottom: 18px;
    color: #4CAF50;
}

.login-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.login-box button {
    padding: 10px 32px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.3s, transform 0.2s;
    margin: 5px;
}

.login-box button:hover {
    background: linear-gradient(90deg, #fa709a 0%, #fee140 100%);
    color: #333;
    transform: scale(1.05);
}

/* 注册弹窗样式 */
.register-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('images/22222.jpg') center/cover;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.register-box {
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 32px 28px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.register-box h2 {
    margin-bottom: 18px;
    color: #4CAF50;
}

.register-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.register-box button {
    padding: 10px 32px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.3s, transform 0.2s;
    margin: 5px;
}

.register-box button:hover {
    background: linear-gradient(90deg, #fa709a 0%, #fee140 100%);
    color: #333;
    transform: scale(1.05);
}

.register-box button[type="submit"] {
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
}

.register-box button[type="submit"]:hover {
    background: linear-gradient(90deg, #fa709a 0%, #fee140 100%);
}

/* 登录框中的注册按钮 */
.login-box #registerBtn {
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
    margin-top: 10px;
    width: 100%;
}

.login-box #registerBtn:hover {
    background: linear-gradient(90deg, #fa709a 0%, #fee140 100%);
}

/* 导航栏样式 */
.sub-nav {
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 20px 30px;
    max-width: 1200px;
    margin: 20px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.6s;
    position: sticky;
    top: 20px;
    z-index: 100;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px);}
    to { opacity: 1; transform: translateY(0);}
}

/* Logo容器样式 */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.sub-nav .logo {
    width: 50px !important;
    height: 50px !important;
    margin: 0 !important;
    display: block !important;
}

/* 品牌文字样式 */
.brand-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #4CAF50, #2196F3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brandGlow 3s ease-in-out infinite alternate;
}

@keyframes brandGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(76,175,80,0.3));
    }
    100% {
        filter: drop-shadow(0 0 15px rgba(33,150,243,0.5));
    }
}

.sub-nav div {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

/* 更多服务弹窗样式 */
.more-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('images/22222.jpg') center/cover;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.more-box {
    background: rgba(255,255,255,0.97);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 32px 28px;
    min-width: 320px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.more-box h2 {
    margin-top: 0;
    color: #2196F3;
}

.more-box #closeMore {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2rem;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.more-box #closeMore:hover {
    color: #fa709a;
}

/* Logo点击弹窗样式 */
.logo-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.logo-modal-content {
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 32px 28px;
    min-width: 280px;
    text-align: center;
    animation: modalSlideIn 0.3s ease-out;
}

.logo-modal-content h3 {
    margin-bottom: 24px;
    color: #333;
    font-size: 1.5rem;
}

.logo-modal-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* 注销确认弹窗样式 */
.confirm-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.confirm-modal-content {
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 32px 28px;
    min-width: 300px;
    text-align: center;
    animation: modalSlideIn 0.3s ease-out;
}

.confirm-modal-content h3 {
    margin-bottom: 16px;
    color: #333;
    font-size: 1.5rem;
}

.confirm-modal-content p {
    margin-bottom: 24px;
    color: #666;
    font-size: 1.1rem;
}

.confirm-modal-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 模态按钮样式 */
.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.modal-btn:not(.logout-btn) {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
}

.modal-btn:not(.logout-btn):hover {
    background: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);
    transform: translateY(-2px);
}

.modal-btn.logout-btn {
    background: linear-gradient(90deg, #ff6b6b 0%, #ff8e53 100%);
    color: #fff;
}

.modal-btn.logout-btn:hover {
    background: linear-gradient(90deg, #ff8e53 0%, #ff6b6b 100%);
    transform: translateY(-2px);
}

/* 内容区域样式 */
.content {
    display: none;
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    position: relative;
    transform: translateZ(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.content:hover {
    transform: translateZ(50px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.content.active {
    display: block;
    animation: contentSlideIn 0.6s ease-out;
}

@keyframes contentSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 跑步科普样式 */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.pros-cons ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
}

.pros-cons ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.pros-cons ul li:hover {
    padding-left: 25px;
    color: var(--primary-color);
    background: rgba(76,175,80,0.05);
    border-radius: 5px;
}

.pros-cons ul li:hover::before {
    transform: translateX(5px);
}

/* 表单样式 */
.input-group {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

input, textarea {
    padding: 12px 16px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76,175,80,0.1);
    transform: translateY(-2px);
    background: rgba(255,255,255,0.95);
}

/* 记录项样式 */
.record-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding-right: 50px;
}

.record-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76,175,80,0.1), transparent);
    transition: left 0.5s ease;
}

.record-item:hover::before {
    left: 100%;
}

.record-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.record-item h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.record-item p {
    margin: 5px 0;
    color: #666;
    line-height: 1.6;
}

.record-content {
    padding-right: 10px;
}

/* 计划项样式 */
.plan-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding-right: 50px;
}

.plan-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(33,150,243,0.1), transparent);
    transition: left 0.5s ease;
}

.plan-item:hover::before {
    left: 100%;
}

.plan-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.plan-item h4 {
    margin: 0 0 10px 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.plan-item p {
    margin: 5px 0;
    color: #666;
    line-height: 1.6;
}

.plan-content-wrapper {
    padding-right: 10px;
}

.plan-item .plan-content {
    margin: 10px 0;
    padding: 10px;
    background: rgba(33,150,243,0.05);
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
}

.plan-item .plan-comment {
    font-style: italic;
    color: #888;
    font-size: 0.9rem;
}

.plan-item small {
    color: #999;
    font-size: 0.8rem;
    display: block;
    margin-top: 10px;
}

/* 删除按钮样式 */
.delete-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    opacity: 0.8;
}

.delete-btn:hover {
    opacity: 1;
    transform: scale(1.1) rotate(90deg);
    background: linear-gradient(135deg, #ff8e53, #ff6b6b);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.5);
}

.delete-btn:active {
    transform: scale(0.95) rotate(90deg);
}

.delete-btn span {
    display: block;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Logo点击提示 */
.sub-nav .logo-container .logo {
    cursor: pointer;
    transition: all 0.3s ease;
}

.sub-nav .logo-container .logo:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        font-size: 15px;
        overflow-x: hidden;
    }
    
    .cover {
        padding: 50px 15px;
        min-height: 320px;
        border-radius: 0 0 40% 40% / 0 0 25px 25px;
    }
    
    .cover h1 {
        font-size: 2.8rem;
        letter-spacing: 3px;
        margin: 15px 0;
        line-height: 1.2;
    }
    
    .cover h2 {
        font-size: 1.3rem;
        margin: 12px 0 25px 0;
        line-height: 1.4;
    }
    
    .logo {
        width: 90px;
        margin-bottom: 18px;
        border-width: 2px;
        padding: 6px;
    }
    
    #startBtn {
        padding: 15px 45px;
        font-size: 1.2rem;
        letter-spacing: 1px;
        max-width: 280px;
        width: 90%;
    }
    
    .sub-nav {
        margin: 15px 10px;
        padding: 18px 20px;
        position: relative;
        top: 15px;
        max-width: none;
    }
    
    .logo-container {
        margin-bottom: 18px;
        gap: 12px;
    }
    
    .sub-nav .logo {
        width: 45px !important;
        height: 45px !important;
    }
    
    .brand-text {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .sub-nav div {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    
    .sub-nav button {
        padding: 11px 22px;
        font-size: 0.95rem;
        margin: 4px;
        min-width: 120px;
        flex: 1 1 calc(50% - 24px);
        max-width: 180px;
    }
    
    .content {
        margin: 15px 10px;
        padding: 22px;
        max-width: none;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .pros-cons h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .pros-cons ul li {
        font-size: 0.95rem;
        padding: 8px 0;
        padding-left: 18px;
        line-height: 1.5;
    }
    
    .input-group {
        gap: 12px;
        margin-bottom: 18px;
    }
    
    input, textarea {
        padding: 11px 14px;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .login-box,
    .register-box,
    .more-box,
    .logo-modal-content,
    .confirm-modal-content {
        margin: 15px;
        padding: 25px;
        min-width: auto;
        width: calc(100vw - 30px);
        max-width: 380px;
        border-radius: 15px;
    }
    
    .login-box h2,
    .register-box h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .login-box input,
    .register-box input {
        padding: 10px 12px;
        margin-bottom: 14px;
        font-size: 0.95rem;
        border-radius: 8px;
    }
    
    .login-box button,
    .register-box button {
        padding: 10px 28px;
        font-size: 1rem;
        margin: 6px 0;
        width: 100%;
    }
    
    .more-box {
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .more-box img {
        width: 180px !important;
        height: auto;
        max-width: 100%;
    }
    
    .more-box h2 {
        font-size: 1.3rem;
        margin-top: 20px;
    }
    
    .more-box p,
    .more-box li {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .record-item,
    .plan-item {
        padding: 18px;
        margin-bottom: 12px;
        border-radius: 12px;
    }
    
    .record-item h4,
    .plan-item h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .record-item p,
    .plan-item p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin: 6px 0;
    }
    
    .delete-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
        top: 12px;
        right: 12px;
    }
    
    .floating-circle {
        width: 50px;
        height: 50px;
    }
    
    .scroll-indicator {
        bottom: 25px;
    }
    
    .scroll-arrow {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .cover {
        padding: 40px 10px;
        min-height: 250px;
        border-radius: 0 0 30% 30% / 0 0 15px 15px;
    }
    
    .cover h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
        margin: 15px 0;
    }
    
    .cover h2 {
        font-size: 1.1rem;
        margin: 10px 0 20px 0;
    }
    
    .logo {
        width: 80px;
        margin-bottom: 15px;
        border-width: 2px;
        padding: 5px;
    }
    
    #startBtn {
        padding: 12px 30px;
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    .sub-nav {
        margin: 10px;
        padding: 15px;
        position: relative;
        top: 10px;
    }
    
    .logo-container {
        margin-bottom: 15px;
        gap: 10px;
    }
    
    .sub-nav .logo {
        width: 40px !important;
        height: 40px !important;
    }
    
    .brand-text {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    .sub-nav div {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .sub-nav button {
        padding: 10px 20px;
        font-size: 0.95rem;
        margin: 3px 0;
        width: 100%;
        max-width: 200px;
    }
    
    .content {
        margin: 10px;
        padding: 15px;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pros-cons h2 {
        font-size: 1.2rem;
    }
    
    .pros-cons ul li {
        font-size: 0.9rem;
        padding: 6px 0;
        padding-left: 15px;
    }
    
    .input-group {
        gap: 10px;
    }
    
    input, textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .login-box,
    .register-box,
    .more-box,
    .logo-modal-content,
    .confirm-modal-content {
        margin: 10px;
        padding: 20px;
        min-width: auto;
        width: calc(100vw - 40px);
        max-width: 320px;
    }
    
    .login-box h2,
    .register-box h2 {
        font-size: 1.3rem;
    }
    
    .login-box input,
    .register-box input {
        padding: 8px;
        margin-bottom: 12px;
        font-size: 0.9rem;
    }
    
    .login-box button,
    .register-box button {
        padding: 8px 24px;
        font-size: 1rem;
    }
    
    .more-box {
        max-height: 80vh;
    }
    
    .more-box img {
        width: 150px !important;
        height: auto;
    }
    
    .record-item,
    .plan-item {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .record-item h4,
    .plan-item h4 {
        font-size: 1.1rem;
    }
    
    .record-item p,
    .plan-item p {
        font-size: 0.9rem;
    }
    
    .delete-btn {
        width: 25px;
        height: 25px;
        font-size: 14px;
        top: 10px;
        right: 10px;
    }
    
    .floating-circle {
        width: 40px;
        height: 40px;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-arrow {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 320px) {
    .cover h1 {
        font-size: 1.8rem;
    }
    
    .cover h2 {
        font-size: 1rem;
    }
    
    .logo {
        width: 60px;
    }
    
    #startBtn {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    .sub-nav button {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
}

/* 移动设备优化 */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        object-fit: contain;
    }
    
    .logo {
        max-width: 120px;
        height: auto;
    }
    
    .more-box img {
        max-width: 200px;
        height: auto;
    }
    
    body {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
    }
    
    * {
        box-sizing: border-box;
    }
    
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    * {
        touch-action: manipulation;
    }
    
    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-rendering: optimizeLegibility;
    }
    
    .cover,
    .sub-nav,
    .content,
    .login-box,
    .register-box,
    .more-box {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    button {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
    }
    
    input, textarea {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .login-modal,
    .register-modal,
    .more-modal,
    .logo-modal,
    .confirm-modal {
        padding: 10px;
        overflow-x: hidden;
    }
    
    .pros-cons ul li,
    .record-item p,
    .plan-item p,
    .more-box p,
    .more-box li {
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }
    
    ul, ol {
        padding-left: 20px;
        margin: 0;
    }
    
    a {
        display: inline-block;
        padding: 2px 4px;
        text-decoration: none;
        color: inherit;
    }
    
    a:hover {
        text-decoration: underline;
    }
    
    form {
        max-width: 100%;
        margin: 0 auto;
    }
    
    input[type="date"] {
        min-height: 44px;
    }
    
    input[type="number"] {
        -moz-appearance: textfield;
        appearance: textfield;
    }
    
    input[type="number"]::-webkit-outer-spin-button,
    input[type="number"]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        appearance: none;
        margin: 0;
    }
    
    input[type="number"]::-moz-number-spin-box {
        -moz-appearance: textfield;
        appearance: textfield;
    }
    
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
    
    ::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 3px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 3px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.5);
    }
    
    ::selection {
        background: rgba(76, 175, 80, 0.3);
        color: #333;
    }
    
    ::-moz-selection {
        background: rgba(76, 175, 80, 0.3);
        color: #333;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .cover {
        padding: 30px 15px;
        min-height: 200px;
    }
    
    .cover h1 {
        font-size: 2.5rem;
    }
    
    .cover h2 {
        font-size: 1.2rem;
    }
    
    .logo {
        width: 70px;
    }
}

@media (hover: none) and (pointer: coarse) {
    button:hover {
        transform: none;
    }
    
    .logo:hover {
        transform: none;
    }
    
    .record-item:hover,
    .plan-item:hover {
        transform: none;
    }
    
    button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .delete-btn {
        min-height: 44px;
        min-width: 44px;
    }
}
