/* Models Page Specific Styles */

/* Main Layout */
.models-main {
    background: #1a1a1a;
    min-height: 100vh;
    padding-top: 80px; /* Account for fixed navbar */
}

/* Model Description Section */
.model-description {
    background: #1a1a1a;
    padding: 3rem 0;
    text-align: center;
}

.description-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ffffff;
    opacity: 0.9;
    margin: 0;
}

/* Controls Section */
.controls-section {
    background: #1a1a1a;
    padding: 2rem 0;
    position: relative;
    z-index: 1100; /* 提高z-index，确保控件不被遮挡 */
}

.controls-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Control button base styles */
.control-button {
    background: #ffffff;
    color: #333333;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

/* Specific z-index for each button (top to bottom) */
#time-toggle {
    z-index: 99997; /* Time Type - topmost */
}

#data-toggle {
    z-index: 99995; /* Data Source - middle */
}

#location-toggle {
    z-index: 99992; /* Location - bottom dropdown */
}

#empty-button, #search-button {
    z-index: 99980; /* Action buttons - no dropdowns */
}

.control-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    background: #f8f8f8;
}

.control-button.active {
    background: #ff6b47;
    color: #ffffff;
}

.button-text {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Special styling for action buttons */
#empty-button {
    background: #ff6b6b;
    color: #ffffff;
}

#empty-button:hover {
    background: #ff5252;
}

#search-button {
    background: #2196f3;
    color: #ffffff;
}

#search-button:hover {
    background: #1976d2;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: inherit; /* Inherit from parent button */
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
}

/* Specific dropdown z-index adjustments */
#time-toggle .dropdown-menu {
    z-index: 999997; /* Time dropdown */
}

#data-toggle .dropdown-menu {
    z-index: 999995; /* Data dropdown */
}

#location-toggle .dropdown-menu {
    z-index: 999992; /* Location dropdown */
}

.dropdown-menu.show {
    display: block;
    z-index: 999999;  /* Even higher when visible */
}

.dropdown-search {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    z-index: 99999;
}

.dropdown-search input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    outline: none;
}

.dropdown-search input:focus {
    border-color: #ff6b47;
    box-shadow: 0 0 0 2px rgba(255, 107, 71, 0.2);
}

.dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    display: block;
}

.dropdown-item.hidden {
    display: none;
}

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

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item:active {
    background-color: #e9ecef;
}

/* Data Display Section */
.data-display {
    background: #1a1a1a;
    padding: 3rem 0;
    margin: 2rem 0;
    position: relative;
    z-index: 50;
}

.data-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.data-header {
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.data-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0;
    font-weight: 600;
    flex: 1;
    text-align: left;
}

.sunset-time {
    margin-top: 0;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sunset-time h3 {
    color: #ff6b47;
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

#sunset-display {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
}

.data-metrics {
    display: grid;
    gap: 1.5rem;
}

.metric-row {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #ff6b47;
    display: grid;
    grid-template-columns: 200px 100px 1fr;
    gap: 1.5rem;
    align-items: center;
}

.metric-label {
    color: #ff6b47;
    font-weight: 600;
    font-size: 1.2rem;
}

.metric-value {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.6rem;
}

.metric-description {
    color: #cccccc;
    line-height: 1.5;
    font-size: 1.1rem;
}

/* Information Sections */
.info-sections {
    background: #2c2c2c;
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.info-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #ff6b47;
}

.info-title {
    color: #ff6b47;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.info-text {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Level Explanations */
.level-explanations {
    display: grid;
    gap: 1rem;
}

.level-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.level-number {
    background: #ff6b47;
    color: #ffffff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.level-desc {
    color: #ffffff;
    line-height: 1.5;
    opacity: 0.9;
}

/* Quality Explanations */
.quality-explanations {
    display: grid;
    gap: 1rem;
}

.quality-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.quality-item.special {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.quality-range {
    background: #ff8a65;
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.quality-item.special .quality-range {
    background: #ffd700;
    color: #333333;
}

.quality-desc {
    color: #ffffff;
    line-height: 1.5;
    opacity: 0.9;
}

/* AOD Explanations */
.aod-explanations {
    display: grid;
    gap: 1rem;
}

.aod-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.aod-item.optimal {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.aod-range {
    background: #d84315;
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 100px;
    text-align: center;
}

.aod-item.optimal .aod-range {
    background: #4caf50;
}

.aod-desc {
    color: #ffffff;
    line-height: 1.5;
    opacity: 0.9;
}

/* Subscribe Section */
.subscribe-section {
    background: #1a1a1a;
    padding: 4rem 0;
    text-align: center;
}

.subscribe-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.subscribe-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.subscribe-description {
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.subscribe-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-email {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: #333333;
    color: #ffffff;
}

.subscribe-email::placeholder {
    color: #888888;
}

.subscribe-btn {
    background: #4ecdc4;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
    background: #45b7b8;
}

.privacy-text {
    color: #888888;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.social-link {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #45b7b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .controls-container {
        flex-direction: column;
        align-items: center;
    }
    
    .control-button {
        min-width: 280px;
    }
    
    .metric-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .info-section {
        padding: 1.5rem;
    }
    
    .level-item,
    .quality-item,
    .aod-item {
        flex-direction: column;
        text-align: center;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .social-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .data-title {
        font-size: 1.4rem;
    }
    
    #sunset-display {
        font-size: 1.5rem;
    }
    
    .info-title {
        font-size: 1.4rem;
    }
    
    .subscribe-title {
        font-size: 2rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.metric-value.loading::after {
    content: '...';
    animation: pulse 1.5s infinite;
}

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

/* Disclaimer Section */
.disclaimer-section {
    background: #1a1a1a;
    padding: 1.5rem 0;
    margin: 2rem 0;
    border-radius: 8px;
    position: relative;
    z-index: 20;
}

.disclaimer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.disclaimer-title {
    color: #ff6b47;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.disclaimer-text {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
    opacity: 0.9;
}

/* Interactive Section */
.interactive-section {
    background: #1a1a1a;
    padding: 3rem 0;
    position: relative;
    z-index: 10;
}

.interactive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Info Buttons */
.info-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.info-btn {
    background: #3a3a3a;
    border: 2px solid #555;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 180px;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 71, 0.3);
    border-color: #ff6b47;
    background: #404040;
}

.info-btn.active {
    background: #ff6b47;
    border-color: #ff6b47;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 71, 0.4);
}

.info-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.btn-title {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Content Display */
.content-display {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 107, 71, 0.2);
    min-height: 400px;
}

.content-panel {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.content-panel.active {
    display: block;
}

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

.content-title {
    color: #ff6b47;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ff6b47;
    padding-bottom: 0.5rem;
}

.content-text {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Workflow Diagram */
.workflow-diagram {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 2rem;
    margin: 1rem 0;
    border-left: 4px solid #ff6b47;
}

.workflow-diagram svg {
    width: 100%;
    height: auto;
    max-width: 100%;
    background: transparent;
}

/* Recommendation Info Box */
.recommendation-info-box {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

/* Enhanced level explanations for interactive content */
.content-panel .level-explanations {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.content-panel .level-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #2a2a2a;
    border-radius: 10px;
    border-left: 4px solid #ff6b47;
    transition: all 0.3s ease;
}

.content-panel .level-item:hover {
    background: #3a3a3a;
    transform: translateX(5px);
}

.content-panel .level-number {
    background: #ff6b47;
    color: #ffffff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 107, 71, 0.3);
}

.content-panel .level-desc {
    color: #ffffff;
    line-height: 1.6;
    opacity: 0.95;
    font-size: 1.05rem;
}

/* Enhanced quality explanations */
.content-panel .quality-explanations {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.content-panel .quality-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #2a2a2a;
    border-radius: 10px;
    border-left: 4px solid #ff8a65;
    transition: all 0.3s ease;
}

.content-panel .quality-item:hover {
    background: #3a3a3a;
    transform: translateX(5px);
}

.content-panel .quality-item.special {
    background: #2d2a1a;
    border-left-color: #ffd700;
}

.content-panel .quality-range {
    background: #ff8a65;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(255, 138, 101, 0.3);
}

.content-panel .quality-item.special .quality-range {
    background: #ffd700;
    color: #333333;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.content-panel .quality-desc {
    color: #ffffff;
    line-height: 1.6;
    opacity: 0.95;
    font-size: 1.05rem;
}

/* Enhanced AOD explanations */
.content-panel .aod-explanations {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.content-panel .aod-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #2a2a2a;
    border-radius: 10px;
    border-left: 4px solid #d84315;
    transition: all 0.3s ease;
}

.content-panel .aod-item:hover {
    background: #3a3a3a;
    transform: translateX(5px);
}

.content-panel .aod-item.optimal {
    background: #1a2d1a;
    border-left-color: #4caf50;
}

.content-panel .aod-range {
    background: #d84315;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(216, 67, 21, 0.3);
}

.content-panel .aod-item.optimal .aod-range {
    background: #4caf50;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.content-panel .aod-desc {
    color: #ffffff;
    line-height: 1.6;
    opacity: 0.95;
    font-size: 1.05rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .info-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .info-btn {
        min-width: 250px;
        width: 100%;
        max-width: 350px;
    }
    
    .disclaimer-title {
        font-size: 1.2rem;
    }
    
    .disclaimer-section {
        padding: 1rem 0;
    }
    
    .content-title {
        font-size: 1.5rem;
    }
    
    .content-display {
        padding: 1.5rem;
    }
    
    .content-panel .level-item,
    .content-panel .quality-item,
    .content-panel .aod-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .disclaimer-container,
    .interactive-container {
        padding: 0 1rem;
    }
    
    .info-btn {
        padding: 1rem 1.5rem;
    }
    
    .btn-title {
        font-size: 1rem;
    }
    
    .btn-subtitle {
        font-size: 0.8rem;
    }
    
    .workflow-diagram {
        padding: 1rem;
    }
    
    .disclaimer-text {
        font-size: 0.9rem;
    }
}

/* Photo Reference Styles */
.photo-reference {
    margin-top: 2rem;
    text-align: center;
}

.reference-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(255, 107, 71, 0.3);
    margin-bottom: 1rem;
}

.reference-caption {
    color: #cccccc;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}
























