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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(30, 60, 114, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(42, 82, 152, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    animation: moveBackground 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes moveBackground {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(10px, -10px);
    }
    50% {
        transform: translate(-5px, 5px);
    }
    75% {
        transform: translate(-10px, -5px);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
    color: white;
    padding: 35px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #ffd700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 32px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.user-info span {
    font-size: 15px;
    font-weight: 600;
}

.update-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#update-time {
    font-size: 14px;
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.countdown {
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
    background: rgba(40, 167, 69, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(40, 167, 69, 0.3);
    display: inline-block;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 40px;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-title {
    font-size: 15px;
    color: #6c757d;
    margin-bottom: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 32px;
    font-weight: 700;
    color: #1e3c72;
    font-family: 'Arial', sans-serif;
}

.card-value.positive {
    color: #dc3545;
    text-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

.card-value.negative {
    color: #28a745;
    text-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

.announcement-bar {
    background: linear-gradient(90deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffd700;
    border-radius: 10px;
    margin: 0 40px 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.announcement-content {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 15px;
}

.announcement-icon {
    font-size: 20px;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

.announcement-text {
    flex: 1;
    font-size: 14px;
    color: #856404;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: scroll 20s linear infinite;
}

.announcement-text:hover {
    animation-play-state: paused;
}

.announcement-text a {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.announcement-text a:hover {
    color: #2a5298;
    text-decoration: underline;
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.toolbar {
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e9ecef;
    gap: 20px;
    flex-wrap: wrap;
    background: white;
}

.api-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.api-selector label {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.api-selector select {
    padding: 10px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    min-width: 140px;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s;
}

.api-selector select:hover {
    border-color: #1e3c72;
}

.api-selector select:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.auto-refresh {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auto-refresh label {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.auto-refresh select {
    padding: 10px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s;
}

.auto-refresh select:hover {
    border-color: #1e3c72;
}

.auto-refresh select:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.table-container {
    padding: 40px;
    max-height: 600px;
    overflow-y: auto;
    background: white;
}

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

thead {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    color: white;
    border-bottom: 2px solid #ffd700;
    white-space: nowrap;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

th:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

td {
    padding: 18px 15px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #495057;
}

.fund-name-link {
    color: #1e3c72;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.fund-name-link:hover {
    color: #2a5298;
    text-decoration: underline;
    transform: scale(1.05);
}

tbody tr {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px) scale(1.005);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

tbody tr td {
    transition: all 0.3s ease;
}

tbody tr:hover td {
    color: #1e3c72;
    font-weight: 500;
}

tbody tr.positive {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.08) 0%, rgba(220, 53, 69, 0.03) 100%);
}

tbody tr.negative {
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.08) 0%, rgba(40, 167, 69, 0.03) 100%);
}

tbody tr.watchlist {
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.1) 0%, rgba(138, 43, 226, 0.05) 100%);
    border-left: 4px solid #8a2be2;
}

tbody tr.watchlist:hover {
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.15) 0%, rgba(138, 43, 226, 0.1) 100%);
}

.positive-value {
    color: #dc3545;
    font-weight: 700;
    font-size: 15px;
}

.negative-value {
    color: #28a745;
    font-weight: 700;
    font-size: 15px;
}

.empty-state {
    text-align: center;
    padding: 120px 20px;
    display: none;
}

.empty-state.show {
    display: block;
}

.empty-icon {
    font-size: 100px;
    margin-bottom: 25px;
    animation: float 3s ease-in-out infinite;
}

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

.empty-text {
    font-size: 20px;
    color: #6c757d;
    font-weight: 500;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.modal-header {
    padding: 25px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.modal-header h2 {
    font-size: 22px;
    color: #1e3c72;
    font-weight: 700;
}

.close {
    font-size: 32px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.3s;
    line-height: 1;
}

.close:hover {
    color: #dc3545;
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 4px rgba(30, 60, 114, 0.1);
}

.fund-preview {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 2px solid #dee2e6;
    display: none;
}

.fund-preview.show {
    display: block;
    animation: fadeIn 0.3s;
}

.fund-preview-info {
    font-size: 14px;
    color: #495057;
    line-height: 1.8;
}

.fund-preview-name {
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 12px;
    font-size: 16px;
}

.modal-footer {
    padding: 25px;
    border-top: 2px solid #e9ecef;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #f8f9fa;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.refresh-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

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

.refresh-success {
    color: #28a745;
    animation: pulse 0.5s ease-in-out;
}

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

.ad-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-banner {
    transition: transform 0.3s, box-shadow 0.3s;
}

.ad-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 25px 20px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    .toolbar {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
        padding: 25px 20px;
    }
    
    .table-container {
        padding: 20px 10px;
    }
    
    th, td {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .card-value {
        font-size: 24px;
    }
    
    .tips-section {
        margin: 20px;
        padding: 20px;
    }
    
    .tips-content {
        grid-template-columns: 1fr;
    }
    
    .tip-item {
        padding: 15px;
    }
    
    .fund-detail-info {
        grid-template-columns: 1fr;
    }
}

.tips-section {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-radius: 15px;
    padding: 30px 40px;
    margin: 30px 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffd700;
    position: relative;
    overflow: hidden;
}

.tips-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.tips-icon {
    font-size: 32px;
    animation: pulse 2s ease-in-out infinite;
}

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

.tips-header h3 {
    font-size: 22px;
    color: #1e3c72;
    font-weight: 700;
    margin: 0;
}

.tips-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.tip-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.tip-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tip-item strong {
    display: block;
    font-size: 16px;
    color: #1e3c72;
    margin-bottom: 12px;
    font-weight: 600;
}

.tip-item ul {
    margin: 0;
    padding-left: 20px;
    color: #495057;
    line-height: 1.8;
}

.tip-item li {
    margin-bottom: 8px;
    position: relative;
}

.tip-item li::before {
    content: '•';
    position: absolute;
    left: -15px;
    color: #ffd700;
    font-weight: bold;
}

.fund-detail-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #ffd700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.detail-item:hover::before {
    transform: scaleX(1);
}

.detail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.detail-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.detail-value {
    font-size: 20px;
    font-weight: 700;
    color: #1e3c72;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.detail-value.positive-value {
    color: #dc3545;
    text-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

.detail-value.negative-value {
    color: #28a745;
    text-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

.detail-value:hover {
    transform: scale(1.05);
}

body.dark-theme {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
}

body.dark-theme::before {
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
}

body.dark-theme .container {
    background: rgba(30, 30, 46, 0.95);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

body.dark-theme header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
}

body.dark-theme .summary-cards {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-theme .card {
    background: rgba(30, 30, 46, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .card-title {
    color: #a0a0b0;
}

body.dark-theme .card-value {
    color: #e0e0e0;
}

body.dark-theme .card-value.positive {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.4);
}

body.dark-theme .card-value.negative {
    color: #51cf66;
    text-shadow: 0 0 10px rgba(81, 207, 102, 0.4);
}

body.dark-theme .announcement-bar {
    background: linear-gradient(90deg, #2d2d3a 0%, #3a3a4a 100%);
    border: 2px solid #ffd700;
}

body.dark-theme .announcement-text {
    color: #ffd700;
}

body.dark-theme .toolbar {
    background: rgba(30, 30, 46, 0.9);
    border-bottom: 2px solid #3a3a4a;
}

body.dark-theme .api-selector label,
body.dark-theme .auto-refresh label {
    color: #a0a0b0;
}

body.dark-theme .api-selector select,
body.dark-theme .auto-refresh select {
    background: rgba(30, 30, 46, 0.9);
    color: #e0e0e0;
    border-color: #3a3a4a;
}

body.dark-theme .api-selector select:hover,
body.dark-theme .auto-refresh select:hover {
    border-color: #667eea;
}

body.dark-theme .table-container {
    background: rgba(30, 30, 46, 0.9);
}

body.dark-theme thead {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

body.dark-theme td {
    color: #e0e0e0;
    border-bottom: 1px solid #3a3a4a;
}

body.dark-theme tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

body.dark-theme tbody tr:hover td {
    color: #ffffff;
}

body.dark-theme .fund-name-link {
    color: #a0d0ff;
}

body.dark-theme .fund-name-link:hover {
    color: #c0e0ff;
}

body.dark-theme .positive-value {
    color: #ff6b6b;
}

body.dark-theme .negative-value {
    color: #51cf66;
}

body.dark-theme .empty-text {
    color: #a0a0b0;
}

body.dark-theme .modal-content {
    background: rgba(30, 30, 46, 0.95);
}

body.dark-theme .modal-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 2px solid #3a3a4a;
}

body.dark-theme .modal-header h2 {
    color: #e0e0e0;
}

body.dark-theme .close {
    color: #a0a0b0;
}

body.dark-theme .close:hover {
    color: #ff6b6b;
}

body.dark-theme .form-group label {
    color: #a0a0b0;
}

body.dark-theme .form-group input {
    background: rgba(30, 30, 46, 0.9);
    color: #e0e0e0;
    border-color: #3a3a4a;
}

body.dark-theme .form-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

body.dark-theme .fund-preview {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #3a3a4a;
}

body.dark-theme .fund-preview-info {
    color: #e0e0e0;
}

body.dark-theme .fund-preview-name {
    color: #a0d0ff;
}

body.dark-theme .modal-footer {
    background: rgba(30, 30, 46, 0.9);
    border-top: 2px solid #3a3a4a;
}

body.dark-theme .tips-section {
    background: linear-gradient(135deg, #2d2d3a 0%, #3a3a4a 100%);
    border: 2px solid #ffd700;
}

body.dark-theme .tips-header h3 {
    color: #e0e0e0;
}

body.dark-theme .tip-item {
    background: rgba(30, 30, 46, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .tip-item strong {
    color: #a0d0ff;
}

body.dark-theme .tip-item ul {
    color: #e0e0e0;
}

body.dark-theme .detail-item {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-left: 4px solid #ffd700;
}

body.dark-theme .detail-item::before {
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
}

body.dark-theme .detail-item:hover {
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

body.dark-theme .detail-label {
    color: #a0a0b0;
}

body.dark-theme .detail-value {
    color: #e0e0e0;
}

body.dark-theme .detail-value.positive-value {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.4);
}

body.dark-theme .detail-value.negative-value {
    color: #51cf66;
    text-shadow: 0 0 10px rgba(81, 207, 102, 0.4);
}

/* 倒计时进度条 */
.countdown-container {
    margin-left: 10px;
    font-size: 14px;
    color: #666;
}

.countdown-progress {
    width: 100px;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.countdown-bar {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 2px;
    transition: width 1s linear;
}

body.dark-theme .countdown-progress {
    background-color: #333;
}

body.dark-theme .countdown-bar {
    background-color: #28a745;
}

body.dark-theme .countdown {
    color: #ccc;
}
