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

:root {
    /* 苹果系统颜色 */
    --primary-color: #007AFF;
    --secondary-color: #34C759;
    --danger-color: #FF3B30;
    --bg-color: #F2F2F7;
    --card-bg: #FFFFFF;
    --text-primary: #000000;
    --text-secondary: #8E8E93;
    --border-color: #C6C6C8;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 2px 8px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-color);
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    padding: 8px;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

.page {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.page.active {
    display: flex;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    color: var(--text-primary);
    flex-shrink: 0;
    padding: 4px 0;
    position: relative;
}

header h1 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
    text-align: center;
    margin: 0;
}

#contactPage header {
    justify-content: flex-start;
}

.btn-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 8px;
    font-weight: 300;
    line-height: 1;
}

.btn-back:hover {
    background: rgba(0, 0, 0, 0.06);
}

.btn-back:active {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
}

#contactPage header h1 {
    flex: 1;
    text-align: center;
    margin-right: 44px;
}

.header-title-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 所有页面左上角品牌标识 */
.header-brand {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    z-index: 1;
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: lowercase;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', sans-serif;
}

.header-brand:hover {
    opacity: 0.7;
    transform: translateY(-50%) scale(1.05);
}

/* 确保标题为header-brand留出空间并居中 */
#historyPage header h1,
#statsPage header h1,
#settingsPage header h1 {
    flex: 1;
    text-align: center;
    margin-left: 120px; /* 为左侧header-brand留出空间 */
}

/* 统计页标题右侧为分享按钮留出空间 */
#statsPage header h1 {
    margin-right: 44px; /* 为右侧分享按钮留出空间 */
}

/* 设置页标题右侧也需要留出空间以保持居中 */
#settingsPage header h1 {
    margin-right: 120px; /* 为右侧留出对称空间，确保居中 */
}

/* 统计页header-actions */
#statsPage header .header-actions {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

/* 历史记录页标题 */
#historyPage header h1 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    margin: 0;
    line-height: 1.2; /* 确保与按钮对齐 */
    width: auto;
}

#timerPage header .btn-add {
    position: absolute;
    right: 0;
}

#historyPage header {
    position: relative;
    padding: 12px 16px;
    display: flex;
    align-items: center;
}

#historyPage header .header-actions {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

/* 历史页手动新增记录按钮 */
.btn-add-history {
    background: transparent;
    color: var(--primary-color);
    border: none;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 8px;
    transition: opacity 0.2s ease;
    line-height: 1.2; /* 与标题行高保持一致 */
    display: inline-flex;
    align-items: center;
}

.btn-add-history:hover {
    opacity: 0.8;
}

.btn-add-history:active {
    opacity: 0.6;
}

.btn-add {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 122, 255, 0.3);
    flex-shrink: 0;
    font-weight: 300;
    line-height: 1;
}

.btn-add:hover {
    background: #0051D5;
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.4);
}

.btn-add:active {
    transform: scale(0.95);
    background: #0040A8;
}

.page > main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 70px;
}

.page > header {
    flex-shrink: 0;
}

.timer-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    padding-bottom: 8px;
}

.timer-item {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--shadow);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border: 0.5px solid var(--border-color);
}


.timer-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
    border-color: var(--project-color, var(--primary-color));
}

.timer-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.timer-item.drag-over {
    border-top: 3px solid var(--primary-color);
    transform: translateY(0);
}

.timer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.timer-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.15s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timer-drag-handle {
    font-size: 18px;
    color: var(--text-secondary);
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.2s, color 0.2s;
    padding: 2px 4px;
    margin-right: 2px;
}

.timer-item:hover .timer-drag-handle {
    opacity: 0.7;
    color: var(--text-primary);
}

.timer-item.dragging .timer-drag-handle {
    cursor: grabbing;
    opacity: 1;
}

.timer-drag-handle:active {
    cursor: grabbing;
}

.timer-icon {
    font-size: 18px;
    flex-shrink: 0;
    display: inline-block;
}

.timer-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timer-name:hover {
    background: rgba(0, 0, 0, 0.04);
}

.timer-name:active {
    background: rgba(0, 0, 0, 0.08);
}

.timer-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.btn-icon {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.15s;
    padding: 0;
}

.btn-icon:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
}

.btn-icon:active {
    background: rgba(0, 0, 0, 0.1);
}

.btn-icon.edit:hover {
    color: var(--primary-color);
    background: rgba(0, 122, 255, 0.1);
}

.btn-icon.delete:hover {
    color: var(--danger-color);
    background: rgba(255, 59, 48, 0.1);
}

.timer-display {
    text-align: center;
    margin: 8px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timer-time {
    font-size: 24px;
    font-weight: 600;
    color: var(--project-color, var(--primary-color));
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.timer-label {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: -0.1px;
    font-weight: 400;
}

.btn-complete,
.btn-start {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: var(--project-color, var(--primary-color));
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.btn-complete:hover,
.btn-start:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-complete:active,
.btn-start:active {
    transform: translateY(0);
    opacity: 0.8;
}

.btn-complete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.modal-small {
    max-width: 320px;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 16px;
    border-bottom: 0.5px solid var(--border-color);
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: var(--bg-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.modal-body input {
    width: 100%;
    padding: 12px 16px;
    border: 0.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s;
    margin-bottom: 20px;
    background: var(--bg-color);
    color: var(--text-primary);
}

.modal-body input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.modal-body p {
    text-align: center;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cancel {
    background: var(--bg-color);
    color: var(--text-primary);
}

.btn-cancel:hover {
    background: rgba(0, 0, 0, 0.06);
}

.btn-cancel:active {
    background: rgba(0, 0, 0, 0.1);
}

.btn-confirm {
    background: var(--primary-color);
    color: white;
}

.btn-confirm:hover {
    opacity: 0.9;
}

.btn-confirm:active {
    opacity: 0.8;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-danger:active {
    opacity: 0.8;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 16px;
    margin-top: 16px;
    font-weight: 400;
}

/* 响应式设计 */
@media (max-width: 480px) {
    body {
        padding: 6px;
    }

    header h1 {
        font-size: 18px;
    }

    .timer-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .timer-item {
        padding: 10px;
    }

    .timer-time {
        font-size: 20px;
    }

    .btn-add {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .timer-name {
        font-size: 13px;
    }
}

@media (min-width: 768px) {
    .timer-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .timer-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.timer-item.completed {
    animation: pulse 0.5s ease;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 0.5px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 100;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    padding: 4px 0;
    color: var(--text-secondary);
}

.nav-icon {
    font-size: 22px;
    transition: transform 0.2s;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: -0.1px;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-item:active .nav-icon {
    transform: scale(0.9);
}

/* 历史记录页面 */
.history-list {
    padding: 8px;
}

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

.history-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 12px 16px 8px;
    letter-spacing: -0.1px;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 8px;
    border: 0.5px solid var(--border-color);
    transition: all 0.2s;
}

.history-item:active {
    background: var(--bg-color);
}

.history-icon {
    font-size: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.history-content {
    flex: 1;
    min-width: 0;
    margin-right: 12px;
}

.history-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.history-time {
    font-size: 14px;
    font-weight: 500;
    color: #585858;
    letter-spacing: -0.1px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 8px;
}

.history-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.history-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
    opacity: 0.7;
}

.history-btn:hover {
    background: var(--bg-color);
    opacity: 1;
}

.history-btn:active {
    background: var(--border-color);
}

/* Stats Page */
#statsPage .header-title-group {
    margin-left: 0; /* Reset margin for stats page */
}

.stats-list {
    padding: 8px;
}

.stats-group {
    background-color: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 0.5px solid var(--border-color);
}

.stats-date {
    font-size: 13px;
    font-weight: 600;
    padding: 12px 16px;
    background-color: var(--bg-color);
    border-bottom: 0.5px solid var(--border-color);
    color: var(--text-primary);
    letter-spacing: -0.1px;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 0.5px solid var(--border-color);
}

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

.stats-project-name {
    font-size: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
    font-weight: 500;
}

.stats-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.stats-count {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: -0.1px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.1px;
}

.form-input {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border: 0.5px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 设置页面 */
.settings-list {
    padding: 8px;
}

.settings-group {
    background: var(--card-bg);
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 0.5px solid var(--border-color);
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 0.5px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

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

.settings-item:active {
    background: var(--bg-color);
}

.settings-content {
    flex: 1;
}

.settings-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
    letter-spacing: -0.2px;
}

.settings-desc {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: -0.1px;
}

.settings-arrow {
    font-size: 18px;
    color: var(--text-secondary);
    margin-left: 12px;
    flex-shrink: 0;
}

/* 语言选择列表 */
.language-list {
    max-height: 400px;
    overflow-y: auto;
}

.language-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 0.5px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

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

.language-item:hover {
    background: var(--bg-color);
}

.language-item.active {
    background: rgba(0, 122, 255, 0.1);
}

.language-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.language-check {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
}

/* 主题选择列表样式 */
/* 分享列表 */
.share-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.share-item {
    display: flex;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 0.5px solid var(--border-color);
}

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

.share-item:hover {
    background: var(--bg-color);
}

.share-item:active {
    background: rgba(0, 0, 0, 0.05);
}

.share-icon {
    font-size: 28px;
    margin-right: 16px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-name {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.theme-list {
    max-height: 400px;
    overflow-y: auto;
}

.theme-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 0.5px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s ease;
}

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

.theme-item:hover {
    background: var(--bg-color);
}

.theme-item.active {
    background: rgba(0, 122, 255, 0.1);
}

.theme-name {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 400;
}

.theme-check {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
}

/* 添加到移动设备指引 */
.add-to-mobile-guide {
    padding: 8px 0;
}

.guide-section {
    margin-bottom: 24px;
}

.guide-section:last-child {
    margin-bottom: 0;
}

.guide-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guide-step {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    padding: 10px 12px;
    background: var(--bg-color);
    border-radius: 8px;
    letter-spacing: -0.1px;
}

/* 设置页项目列表 */
.settings-project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 0.5px solid var(--border-color);
    transition: background 0.2s;
    cursor: move;
    position: relative;
}

.settings-project-item[draggable="true"] {
    cursor: move;
}

.settings-project-item.dragging {
    opacity: 0.5;
    background: var(--bg-color);
}

.settings-project-item.drag-over {
    border-top: 2px solid var(--primary-color);
}

.settings-project-drag-handle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-right: 12px;
    cursor: move;
    user-select: none;
    flex-shrink: 0;
}

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

.settings-project-item:active {
    background: var(--bg-color);
}

.settings-project-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.settings-project-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.settings-project-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.settings-project-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.settings-project-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.15s;
    padding: 0;
}

.settings-project-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
}

.settings-project-btn.edit:hover {
    color: var(--primary-color);
    background: rgba(0, 122, 255, 0.1);
}

.settings-project-btn.delete:hover {
    color: var(--danger-color);
    background: rgba(255, 59, 48, 0.1);
}

/* 联系我们页面 */
.contact-content {
    padding: 8px;
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.contact-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 0.5px solid var(--border-color);
    max-width: 400px;
    width: 100%;
}

.contact-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.contact-email {
    margin-bottom: 20px;
}

.contact-email a {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.3px;
    transition: opacity 0.2s;
}

.contact-email a:hover {
    opacity: 0.8;
}

.contact-email a:active {
    opacity: 0.6;
}

.contact-message {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    letter-spacing: -0.1px;
}

/* 响应式调整 - 导航栏 */
@media (max-width: 480px) {
    .bottom-nav {
        height: 56px;
        padding: 6px 0;
    }

    .nav-icon {
        font-size: 20px;
    }

    .nav-label {
        font-size: 10px;
    }

    .page > main {
        padding-bottom: 66px;
    }

    .contact-card {
        padding: 32px 24px;
    }

    .contact-icon {
        font-size: 48px;
    }
}

/* 计时页头部操作按钮容器 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* 分享按钮 */
.btn-share {
    background: transparent;
    color: var(--primary-color);
    border: none;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 8px;
    transition: opacity 0.2s ease;
}

.btn-share:hover {
    opacity: 0.8;
}

.btn-share:active {
    opacity: 0.6;
}

/* 使用说明按钮 */
.btn-help {
    background: transparent;
    color: var(--primary-color);
    border: none;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 8px;
    transition: opacity 0.2s ease;
}

.btn-help:hover {
    opacity: 0.8;
}

.btn-help:active {
    opacity: 0.6;
}

/* 计时页语言切换按钮（左上角） */
.btn-language-left {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: transparent;
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1;
}

.btn-language-left:hover {
    background: rgba(0, 0, 0, 0.06);
    opacity: 0.8;
}

.btn-language-left:active {
    background: rgba(0, 0, 0, 0.1);
    opacity: 0.6;
    transform: translateY(-50%) scale(0.95);
}

#timerPage header {
    position: relative;
}

.header-title-group {
    margin-left: 0;
    margin-right: 0;
}

#helpPage header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
}

#helpPage header h1 {
    flex: 1;
    text-align: center;
    margin-left: 44px; /* 为左侧返回按钮留出空间 */
    margin-right: 44px; /* 为右侧语言按钮留出空间 */
}

/* 使用说明页语言切换按钮 */
.btn-language {
    background: transparent;
    color: var(--text-primary);
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-language:hover {
    background: rgba(0, 0, 0, 0.06);
    opacity: 0.8;
}

.btn-language:active {
    background: rgba(0, 0, 0, 0.1);
    opacity: 0.6;
    transform: scale(0.95);
}

/* 计时页 header-actions 中的语言按钮 */
#timerPage .header-actions .btn-language {
    margin-right: 0;
}

/* 使用说明页面样式 */
.help-container {
    padding: 20px 16px;
    max-width: 800px;
    margin: 0 auto;
}

.help-section {
    margin-bottom: 32px;
}

.help-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.help-section-desc {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.help-list {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.8;
    padding-left: 20px;
    margin: 0;
}

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

.help-list a {
    color: var(--primary-color);
    text-decoration: none;
}

.help-list a:hover {
    text-decoration: underline;
}

.help-note {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 0.5px solid var(--border-color);
}

@media (max-width: 480px) {
    .help-container {
        padding: 16px 12px;
    }
    
    .help-section {
        margin-bottom: 24px;
    }
    
    .help-section-title {
        font-size: 16px;
    }
    
    .help-section-desc,
    .help-list {
        font-size: 14px;
    }
    
    .btn-help {
        font-size: 13px;
        padding: 4px 6px;
        margin-bottom: 20px;
    }

    .contact-email a {
        font-size: 18px;
    }

    .contact-message {
        font-size: 14px;
    }
}

