:root {
    --primary-color: #4caf50;
    --secondary-color: #8bc34a;
    --accent-color: #ff9800;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --border-color: #ddd;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: #f5f5f5;
    padding-bottom: 60px;
}

.container {
    max-width: 600px;
    padding: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.app-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px;
    text-align: center;
    position: relative;
}

.app-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.calendar-container {
    padding: 10px;
    background-color: white;
}

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

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-month {
    font-weight: bold;
    font-size: 1.2rem;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th {
    padding: 8px;
    text-align: center;
    font-weight: normal;
    color: #666;
}

.calendar-table td {
    padding: 0;
    text-align: center;
    vertical-align: top;
    height: 60px;
    border: 1px solid var(--border-color);
}

.calendar-day {
    position: relative;
    height: 100%;
    min-height: 60px;
    padding: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calendar-day:hover {
    background-color: #f0f8ff;
}

.calendar-day.today {
    background-color: #e8f5e9;
}

.calendar-day.has-records {
    background-color: #fff8e1;
}

.calendar-day.other-month {
    background-color: #f5f5f5;
    color: #aaa;
}

.solar-date {
    font-size: 14px;
    font-weight: bold;
}

.lunar-date {
    font-size: 10px;
    color: #666;
}

.record-indicator {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    color: var(--primary-color);
}

.form-container {
    padding: 15px;
}

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

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

.btn-primary:hover {
    background-color: #3d8b40;
    border-color: #3d8b40;
}

.record-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.record-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

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

.record-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.record-title {
    font-weight: bold;
    color: var(--primary-color);
}

.record-date {
    color: #666;
    font-size: 0.9rem;
}

.record-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.record-detail {
    font-size: 0.9rem;
    color: #555;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.nav-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    color: #666;
    text-decoration: none;
    font-size: 0.8rem;
}

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

.nav-icon {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.login-container {
    padding: 20px;
}

.auth-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.empty-state {
    text-align: center;
    padding: 30px 20px;
    color: #666;
}

.empty-icon {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 10px;
}

.back-button {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
}

.add-button {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    border: none;
    font-size: 24px;
}

/* 日历提示框样式 */
.calendar-tooltip {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    min-width: 200px;
    max-width: 300px;
    font-size: 12px;
    pointer-events: none;
}

.tooltip-header {
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 7px 7px 0 0;
    font-size: 13px;
}

.tooltip-content {
    padding: 8px 12px;
    max-height: 150px;
    overflow-y: auto;
}

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

.tooltip-record:last-child {
    border-bottom: none;
}

.record-product {
    color: #333;
    font-weight: 500;
}

.record-amount {
    color: var(--primary-color);
    font-weight: bold;
}

.tooltip-footer {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 0 0 7px 7px;
    border-top: 1px solid #e9ecef;
    text-align: center;
    color: var(--primary-color);
}

/* 浮动按钮容器 */
.floating-button-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
}

/* 浮动菜单 */
.floating-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 160px;
    animation: fadeInUp 0.3s ease-out;
}

.floating-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.floating-menu-item:last-child {
    margin-bottom: 0;
}

.floating-menu-item:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.floating-menu-item i {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* 主加号按钮样式更新 */
.add-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.add-button.active {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #ff5722, #ff7043);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .floating-button-container {
        bottom: 90px;
        right: 15px;
    }
    
    .floating-menu {
        right: -10px;
        min-width: 140px;
    }
    
    .floating-menu-item {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* 用户信息部分样式 */
.user-info-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.user-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997, #17a2b8);
}

.user-info-section .section-title {
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-info-section .section-title i {
    color: #28a745;
    font-size: 18px;
}

.user-info-section .form-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* 记录信息部分标题样式 */
.section-title {
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

.section-title i {
    color: #007bff;
    font-size: 18px;
}

/* 表单分组样式 */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

/* 用户信息输入框特殊样式 */
.user-info-section .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 12px;
    transition: all 0.3s ease;
}

.user-info-section .form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* 美化的添加按钮样式 */
.add-button-enhanced {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-width: 200px;
    text-transform: none;
    letter-spacing: 0.5px;
}

.add-button-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.8s ease;
}

.add-button-enhanced:hover::before {
    left: 100%;
}

.add-button-enhanced:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.add-button-enhanced:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 销售记录添加按钮 */
.add-button-enhanced.sales {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 3px solid transparent;
}

.add-button-enhanced.sales:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* 采摘计划添加按钮 */
.add-button-enhanced.picking {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: 3px solid transparent;
}

.add-button-enhanced.picking:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* 按钮图标动画 */
.add-button-enhanced i {
    transition: all 0.4s ease;
    font-size: 1.2rem;
}

.add-button-enhanced:hover i {
    transform: scale(1.3) rotate(360deg);
}

/* 增强的空状态容器 */
.empty-state-enhanced {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border-radius: 24px;
    padding: 60px 40px;
    margin: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.empty-state-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea, #48bb78, #ed8936, #e53e3e);
    border-radius: 24px 24px 0 0;
}

.empty-state-enhanced .empty-icon {
    background: linear-gradient(135deg, #edf2f7, #e2e8f0);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.empty-state-enhanced .empty-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #48bb78);
    z-index: -1;
    opacity: 0.15;
}

.empty-state-enhanced .empty-icon i {
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea, #48bb78);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.empty-state-enhanced h4 {
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.empty-state-enhanced .text-muted {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #718096;
    line-height: 1.6;
}

/* 按钮容器动画 */
.button-container {
    animation: fadeInUp 0.8s ease-out;
}

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

/* 响应式设计 */
@media (max-width: 576px) {
    .add-button-enhanced {
        padding: 14px 28px;
        font-size: 1rem;
        min-width: 180px;
    }
    
    .empty-state-enhanced {
        padding: 40px 24px;
        margin: 16px;
    }
    
    .empty-state-enhanced .empty-icon {
        width: 100px;
        height: 100px;
    }
    
    .empty-state-enhanced .empty-icon i {
        font-size: 2.5rem;
    }
    
    .empty-state-enhanced h4 {
        font-size: 1.3rem;
    }
}
