* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-white: #FFFFFF;
    --bg-light-blue: #E0F7FF;
    --brand-blue: #165DFF;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-radius: 8px;
    --transition: 0.3s ease;
}

body {
    font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

p {
    font-weight: 400;
}

.text-light {
    font-weight: 300;
    color: var(--text-secondary);
}

.section {
    padding: 80px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.btn-primary, .btn-secondary {
    padding: 12px 32px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--brand-blue);
    color: white;
}

.btn-primary:hover {
    background-color: #0e4bcc;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--brand-blue);
    border: 2px solid var(--brand-blue);
}

.btn-secondary:hover {
    background-color: var(--bg-light-blue);
}

.btn-large {
    padding: 16px 48px;
    font-size: 18px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

.hidden {
    display: none !important;
}

.countdown-container {
    text-align: center;
    margin-bottom: 24px;
    padding: 24px;
    background: linear-gradient(135deg, var(--bg-light-blue) 0%, #f0faff 100%);
    border-radius: var(--border-radius);
}

.countdown-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.countdown-display {
    font-size: 48px;
    font-weight: 700;
    color: var(--brand-blue);
    font-family: 'Inter', sans-serif;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.countdown-separator {
    margin: 0 4px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.countdown-reset {
    margin-top: 8px;
}

.notification-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.notification-content {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.water-wave {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(180deg, var(--bg-light-blue) 0%, var(--brand-blue) 100%);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    animation: waterRipple 2s infinite;
}

.water-wave::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -25%;
    width: 150%;
    height: 150%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 45%;
    animation: wave 3s infinite linear;
}

@keyframes waterRipple {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes wave {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.notification-content h3 {
    margin-bottom: 12px;
    font-size: 24px;
}

.notification-content p {
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.popup-content h3 {
    margin-bottom: 16px;
    font-size: 24px;
}

.popup-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.contact-email {
    font-size: 20px;
    color: var(--brand-blue);
    margin-bottom: 24px;
    font-weight: 700;
}

.quick-checkout-float {
    display: none;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    width: 200px;
}

.quick-checkout-float h4 {
    margin-bottom: 16px;
    text-align: center;
    color: var(--brand-blue);
}

.quick-checkout-float .quick-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.quick-checkout-float .water-btn {
    padding: 12px 8px;
    font-size: 14px;
}

.quick-checkout-float .custom-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-checkout-float input {
    width: 100%;
    padding: 8px;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.water-ripple {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, var(--bg-light-blue) 0%, transparent 70%);
    opacity: 0.5;
    animation: rippleMove 15s infinite ease-in-out;
}

@keyframes rippleMove {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.logo-icon {
    font-size: 48px;
}

.logo h1 {
    font-size: 48px;
    color: var(--brand-blue);
}

.slogan {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.sub-slogan {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.control-panel {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    margin: 0 auto;
}

.control-group {
    margin-bottom: 32px;
}

.control-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: left;
}

.target-options, .interval-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.target-btn, .interval-btn {
    padding: 10px 20px;
    border: 2px solid var(--text-light);
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.target-btn:hover, .interval-btn:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.target-btn.active, .interval-btn.active {
    background-color: var(--brand-blue);
    color: white;
    border-color: var(--brand-blue);
}

.custom-input {
    display: flex;
    gap: 12px;
    align-items: center;
}

input[type="number"] {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--brand-blue);
}

.notification-options {
    display: flex;
    gap: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#main-toggle {
    margin-bottom: 32px;
}

.progress-container {
    text-align: left;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 700;
}

.progress-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.reset-link {
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 400;
}

.reset-link:hover {
    color: var(--brand-blue);
}

.progress-bar {
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bg-light-blue) 0%, var(--brand-blue) 100%);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.checkout-section {
    background-color: var(--bg-light-blue);
}

.checkout-section h2 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 32px;
}

.checkout-section .quick-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.water-btn {
    padding: 16px 32px;
    background: white;
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
}

.water-btn:hover {
    background: var(--brand-blue);
    color: white;
    transform: scale(1.05);
}

.water-btn:active {
    transform: scale(0.95);
}

.custom-input-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.custom-input-row input {
    flex: 1;
}

.philosophy-section {
    background-color: var(--bg-light-blue);
}

.philosophy-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 16px;
}

.section-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
    color: var(--text-secondary);
    font-size: 18px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-card {
    background: white;
    padding: 32px 24px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.value-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.value-card h3 {
    margin-bottom: 12px;
    color: var(--brand-blue);
}

.value-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

.science-section h2 {
    font-size: 36px;
    margin-bottom: 32px;
}

.science-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.science-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-of-water {
    width: 200px;
    height: 280px;
    border: 4px solid var(--brand-blue);
    border-top: none;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
}

.water-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(180deg, var(--bg-light-blue) 0%, var(--brand-blue) 100%);
    animation: waterMove 3s infinite ease-in-out;
}

@keyframes waterMove {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.science-points {
    margin-bottom: 32px;
}

.science-point {
    margin-bottom: 24px;
}

.science-point h3 {
    margin-bottom: 8px;
    color: var(--brand-blue);
}

.science-point p {
    color: var(--text-secondary);
}

.target-hint {
    background-color: var(--bg-light-blue);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--brand-blue);
}

.target-hint span {
    font-weight: 700;
    color: var(--brand-blue);
}

.reminder-section {
    text-align: center;
}

.reminder-section h2 {
    font-size: 36px;
    margin-bottom: 24px;
}

.reminder-text {
    max-width: 700px;
    margin: 0 auto 48px;
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.big-slogan {
    font-size: 48px;
    color: var(--brand-blue);
    font-weight: 700;
}

.cooperation-section {
    background-color: var(--bg-light-blue);
    text-align: center;
}

.cooperation-section h2 {
    font-size: 32px;
    margin-bottom: 32px;
}

.channels-placeholder {
    margin-bottom: 32px;
    color: var(--text-secondary);
}

.footer {
    background-color: #333333;
    color: white;
    padding: 48px 20px;
}

.footer .container {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 700;
}

.footer-links {
    margin-bottom: 24px;
    color: #cccccc;
}

.footer-links p {
    margin-bottom: 8px;
}

.icp-link {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
}

.icp-link:hover {
    border-bottom-color: #ffffff;
}

.placeholder {
    color: #999999;
}

.disclaimers {
    max-width: 700px;
    margin: 0 auto;
    font-size: 13px;
    color: #aaaaaa;
    text-align: center;
}

.disclaimer-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 24px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    text-align: left;
    line-height: 1.8;
}

.disclaimer-item strong {
    color: #ffffff;
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

@media (min-width: 1024px) {
    .quick-checkout-float {
        display: block;
    }
}

@media (max-width: 1023px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .science-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .science-image {
        order: -1;
    }
    
    .big-slogan {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 48px 16px;
    }
    
    .logo h1 {
        font-size: 36px;
    }
    
    .logo-icon {
        font-size: 36px;
    }
    
    .slogan {
        font-size: 24px;
    }
    
    .control-panel {
        padding: 24px;
    }
    
    .target-options, .interval-options {
        justify-content: center;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-section h2,
    .science-section h2,
    .reminder-section h2 {
        font-size: 28px;
    }
    
    .big-slogan {
        font-size: 28px;
    }
    
    .notification-options {
        justify-content: center;
    }
    
    .custom-input-row {
        flex-direction: column;
    }
}

.alert-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

#alert-popup h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

#alert-popup p {
    margin-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.mobile-mode .notification-popup {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(22, 93, 255, 0.3);
    }
    50% {
        box-shadow: 0 10px 60px rgba(22, 93, 255, 0.6);
    }
}

.mobile-mode .popup-content {
    border: 3px solid var(--primary-color);
}

.mobile-mode .countdown-display {
    font-size: 56px;
}

@media (max-width: 768px) {
    .mobile-mode .countdown-display {
        font-size: 48px;
    }
}

.countdown-reset {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.help-link {
    text-align: center;
    margin-top: 16px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.btn-text:hover {
    background-color: rgba(22, 93, 255, 0.1);
}

.help-content {
    text-align: left;
}

.help-content h3 {
    text-align: center;
    margin-bottom: 24px;
}

.help-section {
    margin-bottom: 24px;
}

.help-section h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.help-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.help-section ul {
    margin: 12px 0;
    padding-left: 20px;
}

.tips-box {
    margin-top: 24px;
    padding: 20px;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    text-align: left;
}

.tips-box h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tips-box p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.tips-box p:last-child {
    margin-bottom: 0;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}