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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    /* 隐藏滚动条但保持滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* 状态栏 */
.status-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 50px;
}

.sync-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sync-status {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
}

.sync-status.online {
    background: rgba(76, 175, 80, 0.8);
}

.sync-status.offline {
    background: rgba(244, 67, 54, 0.8);
}

/* 主内容区域 */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 160px; /* 为底部导航和悬浮按钮留出更多空间 */
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    min-height: calc(100vh - 140px);
    /* 隐藏滚动条但保持滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.main-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.page {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 180px;
    min-height: calc(100vh - 160px);
    width: 100%;
    max-width: 100%;
    /* 隐藏滚动条但保持滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.page::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.page.active {
    display: flex;
    flex-direction: column;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    margin: -25px -25px 30px -25px;
    border-radius: 0 0 20px 20px;
    width: calc(100% + 50px);
    margin-left: -25px;
    margin-right: -25px;
    position: relative;
}

.page-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
    font-size: 1rem;
}

.sync-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
}

.sync-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.sync-btn.syncing {
    pointer-events: none;
    opacity: 0.7;
}

.sync-btn.syncing i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sync-status.syncing {
    background: rgba(255, 193, 7, 0.8);
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    gap: 60px;
}

@media (max-width: 480px) {
    .bottom-nav {
        gap: 20px;
        justify-content: space-around;
        padding: 8px 20px;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #999;
    border-radius: 12px;
    min-width: 80px;
}

.nav-item.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* 悬浮添加按钮 */
.floating-add-btn {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
}

.add-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-btn:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.add-btn:active {
    transform: translateX(-50%) translateY(-1px);
}

/* 手动同步按钮样式已移除，现在使用自动同步 */

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 价值目标样式 */
.goals-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 300px;
}

.goals-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 想法页面样式 */
.ideas-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 300px;
}

.ideas-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.goal-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.goal-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.goal-item.improved {
    border-left-color: #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.02) 100%);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.goal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.goal-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.goal-item:hover .goal-actions {
    opacity: 1;
}

.goal-content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

.goal-versions-container {
    margin: 12px 0;
}

.versions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.versions-header:hover {
    background: #e9ecef;
}

.version-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

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

.versions-list {
    margin-top: 8px;
    border-left: 2px solid #e9ecef;
    padding-left: 16px;
}

.version-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    position: relative;
}

.version-item:before {
    content: '';
    position: absolute;
    left: -20px;
    top: 16px;
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
    border: 2px solid #fff;
}

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

.version-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.version-item:hover .version-actions {
    opacity: 1;
}

.btn-icon.edit-version {
    background: #007bff;
    color: white;
    font-size: 10px;
    padding: 4px;
    width: 20px;
    height: 20px;
}

.btn-icon.edit-version:hover {
    background: #0056b3;
}

.btn-icon.delete-version {
    background: #dc3545;
    color: white;
    font-size: 10px;
    padding: 4px;
    width: 20px;
    height: 20px;
}

.btn-icon.delete-version:hover {
    background: #c82333;
}

.version-label {
    font-size: 12px;
    font-weight: 600;
    color: #007bff;
    background: #e3f2fd;
    padding: 2px 8px;
    border-radius: 12px;
}

.version-date {
    font-size: 11px;
    color: #999;
}

.version-content {
    color: #555;
    line-height: 1.4;
    font-size: 13px;
}

.goal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.goal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.goal-base {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.goal-version {
    font-weight: 500;
}

.btn-icon.add-version {
    background: #28a745;
    color: white;
}

.btn-icon.add-version:hover {
    background: #218838;
}

/* 添加新版本按钮样式 */
.add-version-section {
    margin: 15px 0;
    text-align: center;
}

.btn-add-version {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add-version:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-add-version:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.btn-add-version i {
    font-size: 12px;
}

/* 我的页面样式 */
.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 300px;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    width: 100%;
    box-sizing: border-box;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.stat-icon {
    font-size: 28px;
    color: #667eea;
    margin-bottom: 12px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.motto-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.motto-section h3 {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 16px;
}

.motto-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.motto-display p {
    margin: 0;
    color: #333;
    font-style: italic;
    flex: 1;
    line-height: 1.5;
}

.btn-edit {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background: rgba(102, 126, 234, 0.1);
}

.settings-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.settings-section h3 {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 16px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.setting-item span {
    color: #333;
    font-weight: 500;
}

.char-count {
    display: block;
    text-align: right;
    color: #999;
    font-size: 11px;
    margin-top: 4px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-secondary:hover {
    background: #5a6268;
}

.search-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.search-bar {
    position: relative;
    margin-bottom: 15px;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-bar input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

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

.btn-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: none;
    z-index: 10;
}

.btn-clear.show {
    display: block;
}

.btn-clear:hover {
    background: #f8f9fa;
    color: #666;
}

.filter-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.tag-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-filter {
    background: #f8f9fa;
    color: #666;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tag-filter:hover {
    background: #e9ecef;
}

.tag-filter.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.ideas-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

.ideas-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.idea-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    position: relative;
}

.idea-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.idea-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.idea-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.idea-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-icon:hover {
    background: #e9ecef;
    color: #333;
}

.btn-icon.delete:hover {
    background: #dc3545;
    color: white;
}

.idea-content {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.idea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.idea-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.idea-date {
    color: #999;
    font-size: 12px;
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 80px 20px;
    max-width: 400px;
    margin: 0 auto;
}

.empty-state i {
    font-size: 72px;
    margin-bottom: 20px;
    color: #ddd;
}

.empty-state h3 {
    margin-bottom: 12px;
    font-size: 20px;
    color: #666;
    font-weight: 600;
}

.empty-state p {
    font-size: 15px;
    line-height: 1.6;
    color: #888;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
    margin: auto;
    position: relative;
    /* 隐藏滚动条但保持滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e1e5e9;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 25px;
}

.modal-body input,
.modal-body textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

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

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px 25px;
    border-top: 1px solid #e1e5e9;
}

/* 响应式设计 */
/* 移动端设备优化 (包括iPhone XR等) */
@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
        box-shadow: none;
    }
    
    .status-bar {
        padding: 8px 16px;
        min-height: 44px;
    }
    
    .sync-status {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    
    .main-content {
        padding-bottom: 120px;
    }
    
    .page {
        padding: 16px;
        padding-bottom: 140px;
    }
    
    /* 统计卡片优化 */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 20px;
        border-radius: 16px;
    }
    
    .stat-icon {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .stat-number {
        font-size: 28px;
        margin-bottom: 6px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    /* 底部导航优化 */
    .bottom-nav {
        padding: 8px 0 calc(env(safe-area-inset-bottom) + 8px);
        height: auto;
        min-height: 70px;
        gap: 20px;
    }
    
    .nav-item {
        padding: 8px 4px;
        min-height: 54px;
        font-size: 12px;
    }
    
    .nav-item i {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .nav-item span {
        font-size: 11px;
    }
    
    /* 悬浮按钮优化 */
    .floating-add-btn {
        bottom: calc(80px + env(safe-area-inset-bottom));
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    
    .add-btn {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    /* 想法卡片优化 */
    .idea-card {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    .idea-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
        line-height: 1.4;
    }
    
    .idea-content {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .idea-tags .tag {
        padding: 4px 8px;
        font-size: 11px;
        margin-right: 6px;
        margin-bottom: 6px;
        border-radius: 12px;
    }
    
    .idea-date {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .idea-actions {
        gap: 8px;
    }
    
    .idea-actions button {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
        border-radius: 8px;
    }
    
    /* 目标卡片优化 */
    .goal-card {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    .goal-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
        line-height: 1.4;
    }
    
    .goal-content {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .goal-actions {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .goal-actions button {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
        border-radius: 8px;
        flex: 1;
        min-width: 80px;
    }
    
    .btn-add-version {
        width: 100%;
        margin-top: 8px;
        padding: 10px;
        font-size: 13px;
    }
    
    /* 版本列表优化 */
    .version-item {
        padding: 12px;
        margin-bottom: 8px;
        border-radius: 8px;
    }
    
    .version-content {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .version-actions button {
        padding: 6px 10px;
        font-size: 11px;
        min-height: 32px;
    }
    
    /* 模态框优化 */
    .modal-content {
        width: calc(100% - 32px);
        margin: 16px;
        border-radius: 16px;
        max-height: calc(100vh - 32px);
    }
    
    .modal-header {
        padding: 20px 20px 16px;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 0 20px 16px;
    }
    
    .modal-body input,
    .modal-body textarea {
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 12px;
        margin-bottom: 16px;
        min-height: 48px;
    }
    
    .modal-body textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    .modal-footer {
        padding: 16px 20px 20px;
        gap: 12px;
    }
    
    .modal-footer button {
        padding: 12px 20px;
        font-size: 16px;
        min-height: 48px;
        border-radius: 12px;
        flex: 1;
    }
    
    /* 座右铭区域优化 */
    .motto-section {
        padding: 16px;
        border-radius: 12px;
        margin-bottom: 16px;
    }
    
    .motto-display {
        padding: 16px;
        border-radius: 12px;
    }
    
    .btn-edit {
        padding: 8px;
        min-height: 36px;
        width: 36px;
    }
    
    /* 搜索区域优化 */
    .search-section {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    .search-bar input {
        padding: 12px 16px 12px 48px;
        font-size: 16px;
        min-height: 48px;
        border-radius: 12px;
    }
    
    .search-bar i {
        left: 16px;
        font-size: 16px;
    }
    
    .btn-clear {
         right: 16px;
         padding: 12px;
         min-height: 48px;
         width: 48px;
     }
     
     /* 标签筛选优化 */
     .tag-filter {
         padding: 16px;
         margin-bottom: 16px;
         border-radius: 12px;
     }
     
     .tag-filter h3 {
         font-size: 1rem;
         margin-bottom: 12px;
     }
     
     .tag-list {
         gap: 8px;
         flex-wrap: wrap;
     }
     
     .tag-list .tag {
         padding: 8px 12px;
         font-size: 12px;
         min-height: 36px;
         border-radius: 18px;
         cursor: pointer;
         transition: all 0.2s ease;
     }
     
     .tag-list .tag:active {
         transform: scale(0.95);
     }
     
     /* 头部优化 */
     .page-header {
         padding: 20px 16px;
         border-radius: 0 0 20px 20px;
     }
     
     .page-header h1 {
         font-size: 1.6rem;
         margin-bottom: 8px;
     }
     
     .page-header p {
         font-size: 0.9rem;
         opacity: 0.9;
     }
     
     .sync-btn {
         top: 16px;
         right: 16px;
         padding: 6px 12px;
         font-size: 12px;
         border-radius: 16px;
     }
     
     .sync-btn span {
         display: none;
     }
     
     .sync-btn i {
         margin: 0;
     }
     
     /* 空状态优化 */
     .empty-state {
         padding: 40px 20px;
         text-align: center;
     }
     
     .empty-state h3 {
         font-size: 1.1rem;
         margin-bottom: 8px;
     }
     
     .empty-state p {
         font-size: 0.9rem;
         line-height: 1.5;
     }
     
     /* 加载状态优化 */
     .loading {
         padding: 20px;
         text-align: center;
         font-size: 0.9rem;
     }
     
     /* 通用按钮优化 */
     .btn {
         min-height: 44px;
         padding: 12px 16px;
         font-size: 14px;
         border-radius: 12px;
         transition: all 0.2s ease;
     }
     
     .btn:active {
         transform: scale(0.98);
     }
     
     .btn-primary {
         font-weight: 600;
     }
     
     .btn-secondary {
         font-weight: 500;
     }
     
     /* 输入框优化 */
     input, textarea, select {
         font-size: 16px !important; /* 防止iOS缩放 */
         border-radius: 12px;
         padding: 12px 16px;
         min-height: 48px;
     }
     
     /* 滚动条隐藏 */
     .page::-webkit-scrollbar,
     .modal-body::-webkit-scrollbar {
         display: none;
     }
     
     /* 安全区域适配 */
     .app-container {
         padding-top: env(safe-area-inset-top);
     }
     
     /* 触摸反馈 */
      .idea-card:active,
      .goal-card:active,
      .stat-card:active {
          transform: scale(0.98);
          transition: transform 0.1s ease;
      }
      
      /* 按钮布局优化 */
      .idea-actions,
      .goal-actions {
          flex-direction: column;
          gap: 8px;
      }
      
      .idea-actions button,
      .goal-actions button {
          width: 100%;
          min-height: 44px;
      }
  }

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .add-idea-section,
    .search-section,
    .ideas-container {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    /* 优化搜索区域移动端样式 */
    .search-section {
        border-radius: 12px;
    }
    
    .search-bar {
        margin-bottom: 20px;
    }
    
    .search-bar input {
        padding: 14px 15px 14px 45px;
        font-size: 16px;
        border-radius: 12px;
        border: 2px solid #e1e5e9;
    }
    
    .search-bar i {
        left: 16px;
        font-size: 16px;
    }
    
    .btn-clear {
         right: 15px;
         padding: 10px;
         font-size: 14px;
     }
    
    /* 标签筛选区域优化 */
    .filter-tags {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .filter-label {
        font-size: 14px;
        font-weight: 600;
        color: #555;
    }
    
    .tag-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    
    .tag-filter {
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 20px;
        white-space: nowrap;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .idea-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .idea-actions {
        align-self: flex-end;
    }
    
    .idea-actions button {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 15px;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer button {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    header h1 {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }
    
    header p {
        font-size: 0.9rem;
    }
    
    .add-idea-section,
    .search-section,
    .ideas-container {
        padding: 12px;
        margin-bottom: 15px;
        border-radius: 10px;
    }
    
    /* 搜索区域超小屏优化 */
    .search-bar input {
        padding: 12px 12px 12px 40px;
        font-size: 15px;
    }
    
    .search-bar i {
        left: 14px;
        font-size: 14px;
    }
    
    .btn-clear {
         right: 12px;
         padding: 8px;
         font-size: 12px;
     }
    
    .filter-label {
        font-size: 13px;
    }
    
    .tag-filter {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-item {
        padding: 12px;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* 想法卡片优化 */
    .idea-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .idea-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .idea-content {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .idea-tags .tag {
        padding: 3px 8px;
        font-size: 11px;
        margin-right: 6px;
        margin-bottom: 6px;
    }
    
    .idea-date {
        font-size: 0.8rem;
    }
    
    .idea-actions button {
        padding: 5px 8px;
        font-size: 11px;
        margin-left: 5px;
    }
    
    /* 表单优化 */
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* 模态框优化 */
    .modal-content {
        width: 98%;
        margin: 10px;
        border-radius: 12px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px;
    }
    
    .modal-body input,
    .modal-body textarea {
        padding: 10px 12px;
        font-size: 15px;
    }
}