/* 免责声明弹窗样式 */
.disclaimer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.5s ease-out;
}

.disclaimer-content {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    animation: slideInUp 0.5s ease-out;
    color: var(--text-color);
}

.disclaimer-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.disclaimer-text {
    margin-bottom: 25px;
    line-height: 1.6;
}

.disclaimer-text p {
    margin-bottom: 15px;
}

.disclaimer-text ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.disclaimer-text li {
    margin-bottom: 8px;
}

.disclaimer-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.disclaimer-checkbox input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.disclaimer-checkbox label {
    font-weight: 500;
    cursor: pointer;
}

#continue-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#continue-btn:hover:not([disabled]) {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

#continue-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 版权信息样式 */
.copyright-info {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 1000;
    animation: fadeIn 0.5s ease-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .copyright-info {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 全局样式 */
:root {
    --primary-color: #1a73e8;
    --hover-color: #4285f4;
    --text-color: #202124;
    --secondary-text: #5f6368;
    --border-color: #dadce0;
    --error-color: #d93025;
    --background-color: #ffffff;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --card-background: #ffffff;
    --header-background: #ffffff;
    --icon-color: #5f6368;
    --button-text: #ffffff;
    --dropdown-background: #ffffff;
    --service-card-background: #f8f9fa;
    --service-card-hover: #f1f3f4;
}

/* 暗色模式 */
[data-theme="dark"] {
    --primary-color: #8ab4f8;
    --hover-color: #aecbfa;
    --text-color: #e8eaed;
    --secondary-text: #9aa0a6;
    --border-color: #5f6368;
    --error-color: #f28b82;
    --background-color: #202124;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --card-background: #2d2e30;
    --header-background: #202124;
    --icon-color: #9aa0a6;
    --button-text: #202124;
    --dropdown-background: #2d2e30;
    --service-card-background: #303134;
    --service-card-hover: #3c4043;
}

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

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 450px;
    min-height: 500px;
    position: relative;
    z-index: 1;
}

/* 暗色模式切换按钮 */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--icon-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#theme-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

[data-theme="dark"] #theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#theme-toggle-btn .material-icons {
    font-size: 24px;
    transition: transform 0.5s ease;
}

#theme-toggle-btn:hover .material-icons {
    animation: pulse 1s infinite alternate;
}

.login-box {
    width: 100%;
    padding: 48px 40px 36px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.login-box:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.login-box::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(26, 115, 232, 0.03) 0%, rgba(26, 115, 232, 0) 70%);
    transform: scale(0);
    transition: transform 0.6s ease-out;
    border-radius: 50%;
}

.login-box:hover::before {
    transform: scale(2);
}

.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.google-logo {
    width: 75px;
    height: 24px;
}

.title {
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 32px;
    color: #202124;
}

.input-container {
    position: relative;
    margin-bottom: 24px;
}

.input-container input {
    width: 100%;
    height: 56px;
    padding: 16px 14px 8px;
    font-size: 16px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
}

.input-container input:focus {
    border-color: #1a73e8;
    border-width: 2px;
}

.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label {
    transform: translateY(-18px) scale(0.75);
    color: #1a73e8;
}

.input-container input:focus + label {
    color: #1a73e8;
}

.input-container label {
    position: absolute;
    left: 14px;
    top: 18px;
    font-size: 16px;
    color: #5f6368;
    pointer-events: none;
    transition: all 0.2s ease;
    transform-origin: left top;
}

.forgot-email, .forgot-password {
    margin-bottom: 32px;
}

.forgot-email a, .forgot-password a {
    color: #1a73e8;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}

.forgot-email a:hover, .forgot-password a:hover {
    text-decoration: underline;
}

.privacy-text {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 32px;
    line-height: 1.5;
}

.privacy-text a {
    color: #1a73e8;
    text-decoration: none;
}

.privacy-text a:hover {
    text-decoration: underline;
}

.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.create-account {
    color: #1a73e8;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}

.create-account:hover {
    text-decoration: underline;
}

.next-button, .back-button {
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.next-button:hover {
    background-color: #1765cc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.back-button {
    background-color: transparent;
    color: #1a73e8;
}

.back-button:hover {
    background-color: rgba(26, 115, 232, 0.08);
    transform: translateY(-1px);
}

.footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    margin-top: 16px;
    font-size: 12px;
    color: #5f6368;
}

.language-selector select {
    background-color: transparent;
    border: none;
    color: #5f6368;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    outline: none;
}

.language-selector select:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.footer-links a {
    color: #5f6368;
    text-decoration: none;
    margin-left: 24px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* 密码页面样式 */
.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.user-avatar {
    margin-right: 12px;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1a73e8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
}

.user-email {
    font-size: 16px;
    color: #202124;
}

.show-password {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.show-password input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.show-password label {
    font-size: 14px;
    color: #5f6368;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .login-container {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .login-box {
        padding: 24px 16px;
        border: none;
        box-shadow: none;
    }
    
    .footer {
        flex-direction: column;
        align-items: center;
    }
    
    .language-selector {
        margin-bottom: 16px;
    }
    
    .footer-links {
        display: flex;
        justify-content: center;
    }
    
    .footer-links a {
        margin: 0 12px;
    }
}

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

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

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

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

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

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

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

.modal-content {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--icon-color);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.modal-close-btn:hover {
    background-color: var(--hover-color);
}

.modal-body {
    color: var(--text-color);
    padding: 20px;
    overflow-y: auto;
    max-height: 70vh;
}

/* 账户管理模态框样式 */
.account-management p {
    margin-bottom: 20px;
    color: var(--secondary-text);
}

.account-sections-modal {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.account-section-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: var(--service-card-background);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.account-section-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 设置项样式 */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.setting-info h4 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.setting-info p {
    color: var(--secondary-text);
    font-size: 14px;
}

.setting-btn {
    background-color: var(--service-card-background);
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.setting-btn:hover {
    background-color: rgba(26, 115, 232, 0.1);
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* 服务模态框样式 */
.service-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-icon-large {
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 16px;
}

.service-modal-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.service-modal-content p {
    margin-bottom: 24px;
    color: var(--secondary-text-color);
    line-height: 1.5;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: var(--hover-color);
    border-radius: 8px;
    transition: transform 0.2s;
}

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

.feature-item .material-icons {
    color: var(--primary-color);
}

.modal-action-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    width: 100%;
    max-width: 200px;
}

.modal-action-btn:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 操作按钮模态框样式 */
.action-modal-content {
    display: flex;
    flex-direction: column;
}

.action-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.action-icon .material-icons {
    font-size: 48px;
    color: var(--primary-color);
}

.settings-section {
    margin: 24px 0;
}

.settings-section h4 {
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-color);
}

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

.setting-info {
    flex: 1;
}

.setting-info span {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-color);
}

.setting-info p {
    font-size: 14px;
    color: var(--secondary-text-color);
    margin: 0;
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

.setting-action-btn {
    background-color: var(--hover-color);
    color: var(--primary-color);
    border: none;
    padding: 8px 16px;
    border-radius: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.setting-action-btn:hover {
    background-color: var(--border-color);
}

.modal-save-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    width: 100%;
    margin-top: 24px;
}

.modal-save-btn:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
}

/* 安全状态样式 */
.security-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: var(--hover-color);
    border-radius: 8px;
    margin: 16px 0;
}

.status-icon.secure {
    color: #34A853;
}

.status-icon .material-icons {
    font-size: 32px;
}

.status-text h4 {
    margin: 0 0 4px 0;
    color: var(--text-color);
}

.status-text p {
    margin: 0;
    font-size: 14px;
    color: var(--secondary-text-color);
}

/* 支付方式样式 */
.payment-methods, .subscriptions {
    margin: 24px 0;
}

.payment-method-item, .subscription-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: var(--hover-color);
    border-radius: 8px;
    margin-bottom: 12px;
}

.payment-icon, .subscription-icon {
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.payment-icon.visa {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path fill="%230052A4" d="M45,35c0,2.209-1.791,4-4,4H7c-2.209,0-4-1.791-4-4V13c0-2.209,1.791-4,4-4h34c2.209,0,4,1.791,4,4V35z"/><path fill="%23FFFFFF" d="M15.186,19l-2.626,7.832c0,0-0.667-3.313-0.733-3.729c-1.495-3.411-3.701-3.221-3.701-3.221L10.726,30v-0.002h3.161L18.258,19H15.186z"/><path fill="%23FFFFFF" d="M17.689,30h2.823l1.738-10h-2.821L17.689,30z"/><path fill="%23FFFFFF" d="M24.428,19.825c-0.74-0.275-1.479-0.573-1.479-1.167c0-0.385,0.312-0.803,0.963-0.803c0.74,0,1.323,0.275,1.323,0.275l0.204-2.241c0,0-0.481-0.263-1.562-0.263c-1.323,0-2.647,0.573-2.647,2.619c0,1.023,0.74,1.596,1.302,1.981c0.556,0.385,0.74,0.658,0.74,1.023c0,0.385-0.481,0.715-1.019,0.715c-0.926,0-1.788-0.407-1.788-0.407l-0.252,2.338c0,0,0.557,0.298,1.635,0.298c1.479,0,2.975-0.77,2.975-2.856C25.823,20.685,25.169,20.099,24.428,19.825z"/><path fill="%23FFFFFF" d="M38,24.605l0.222-1.688c0,0-0.629-0.358-1.554-0.358c-0.74,0-2.44,0.179-2.44,2.071c0,1.511,1.998,1.542,1.998,2.343c0,0.801-1.776,0.617-2.368,0.148l-0.259,1.711c0,0,0.629,0.268,1.72,0.268c1.091,0,2.701-0.596,2.701-2.071c0-1.563-2.029-1.679-2.029-2.343C35.991,24.063,37.334,24.063,38,24.605z"/><path fill="%23FFFFFF" d="M31.761,19.025l-2.188,5.31l-0.259-1.217c0,0-0.777-1.563-2.316-1.563c-1.091,0-3.519,0.59-3.519,3.268c0,2.546,2.129,3.064,2.647,3.064c0.518,0,1.258-0.148,1.258-0.148l0.074-0.209h-0.111l0.407-2.661c0,0,1.406-3.315,1.628-3.844c0.333,0,2.521,0,2.521,0L31.761,19.025z M28.073,27.116c-0.407,0-0.815-0.239-0.815-0.835c0-0.835,0.444-1.189,0.999-1.189c0.481,0,0.666,0.18,0.666,0.18l-0.222,1.511C28.702,26.782,28.48,27.116,28.073,27.116z"/><path fill="%23FFFFFF" d="M17.197,29.077c0,0,0.148-0.901,0.148-1.2c0.407,0,3.871,0,4.352,0c0.111,0.299,0.407,1.2,0.407,1.2H17.197z"/></svg>');
}

.subscription-icon.drive {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path fill="%230F9D58" d="M24 10l-10 18 5 8h10l5-8z"/><path fill="%23FFCD40" d="M24 10l10 18-5 8h-10l-5-8z"/><path fill="%234285F4" d="M14 28l-4.52 8H30l4.52-8z"/></svg>');
}

.subscription-icon.youtube {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path fill="%23FF3D00" d="M43.2,33.9c-0.4,2.1-2.1,3.7-4.2,4c-3.3,0.5-8.8,1.1-15,1.1c-6.1,0-11.6-0.6-15-1.1c-2.1-0.3-3.8-1.9-4.2-4C4.4,31.6,4,28.2,4,24c0-4.2,0.4-7.6,0.8-9.9c0.4-2.1,2.1-3.7,4.2-4C12.3,9.6,17.8,9,24,9c6.2,0,11.6,0.6,15,1.1c2.1,0.3,3.8,1.9,4.2,4c0.4,2.3,0.9,5.7,0.9,9.9C44,28.2,43.6,31.6,43.2,33.9z"/><path fill="%23FFF" d="M20 31L20 17 32 24z"/></svg>');
}

.payment-info, .subscription-info {
    flex: 1;
}

.payment-info span, .subscription-info span {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-color);
}

.payment-info p, .subscription-info p {
    font-size: 14px;
    color: var(--secondary-text-color);
    margin: 0;
}

.payment-edit-btn {
    background: transparent;
    border: none;
    color: var(--icon-color);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.payment-edit-btn:hover {
    background-color: var(--border-color);
}

.add-payment-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: 1px dashed var(--border-color);
    color: var(--primary-color);
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    margin-top: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-payment-btn:hover {
    background-color: var(--hover-color);
}

.subscription-manage-btn {
    background-color: var(--hover-color);
    color: var(--primary-color);
    border: none;
    padding: 8px 16px;
    border-radius: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.subscription-manage-btn:hover {
    background-color: var(--border-color);
}

#login-form, #password-form {
    animation: fadeIn 0.5s ease-out;
}

.logo {
    animation: pulse 2s infinite ease-in-out;
}

.next-button {
    position: relative;
    overflow: hidden;
}

.next-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.next-button:hover::after {
    transform: translateX(100%);
}

.input-container input:focus {
    animation: pulse 0.3s ease-out;
}

/* 输入框焦点效果 */
.input-container input:focus {
    box-shadow: 0 1px 2px rgba(26, 115, 232, 0.1);
}

/* 按钮点击效果 */
.next-button:active, .back-button:active {
    transform: scale(0.96);
    transition: transform 0.1s;
}

/* 错误状态 */
.input-error input {
    border-color: #d93025;
    border-width: 2px;
}

.input-error label {
    color: #d93025;
}

.error-message {
    color: #d93025;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.input-error .error-message {
    display: block;
}

/* 登录后的仪表盘界面 */
.dashboard {
    width: 100%;
    min-height: 100vh;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease-in-out;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background-color: var(--header-background);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-logo {
    display: flex;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    position: relative;
}

.user-avatar-dash {
    margin-right: 10px;
}

.avatar-circle-dash {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.avatar-circle-dash:hover {
    transform: scale(1.1);
}

#user-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--icon-color);
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

#user-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] #user-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    width: 320px;
    background-color: var(--dropdown-background);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 20px;
    display: none;
    z-index: 1000;
    animation: slideInUp 0.3s ease-out;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.dropdown-avatar {
    margin-bottom: 15px;
}

.dropdown-avatar .avatar-circle-dash {
    width: 80px;
    height: 80px;
    font-size: 32px;
}

.dropdown-user-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-color);
}

.dropdown-user-email {
    font-size: 14px;
    color: var(--secondary-text);
}

.dropdown-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dropdown-actions button {
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    color: var(--text-color);
}

.dropdown-actions button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

[data-theme="dark"] .dropdown-actions button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#sign-out-btn {
    color: var(--primary-color);
    font-weight: 500;
}

.dropdown-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
}

.dropdown-link {
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dropdown-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.dot-separator {
    margin: 0 8px;
    color: var(--secondary-text);
}

.dashboard-content {
    flex: 1;
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.welcome-card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 24px;
    margin-bottom: 24px;
    animation: slideInUp 0.5s ease-out;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.welcome-card h1 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-color);
}

.welcome-card p {
    color: var(--secondary-text);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* 搜索栏样式 */
.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--service-card-background);
    border-radius: 24px;
    padding: 8px 16px;
    margin-bottom: 24px;
    width: 100%;
    transition: box-shadow 0.3s ease;
}

.search-bar:hover {
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

.search-icon {
    color: var(--secondary-text);
    margin-right: 10px;
}

.search-input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 16px;
    color: var(--text-color);
    outline: none;
    padding: 8px 0;
}

.search-input::placeholder {
    color: var(--secondary-text);
}

/* 账户部分卡片 */
.account-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.section-card {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.section-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.section-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--service-card-background);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
}

.section-icon .material-icons {
    font-size: 24px;
    color: var(--primary-color);
}

.section-content h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-color);
}

.section-content p {
    font-size: 14px;
    color: var(--secondary-text);
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.action-button:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.action-button .material-icons {
    font-size: 18px;
}

.services-section {
    margin-top: 32px;
    animation: slideInUp 0.7s ease-out;
}

.services-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.service-card {
    background-color: var(--service-card-background);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    background-color: var(--service-card-hover);
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .service-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 12px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    animation: pulse 1s infinite alternate;
}

.service-icon.gmail {
    background-color: #ea4335;
    background-image: url('https://www.gstatic.com/images/branding/product/1x/gmail_48dp.png');
}

.service-icon.drive {
    background-color: #0f9d58;
    background-image: url('https://www.gstatic.com/images/branding/product/1x/drive_48dp.png');
}

.service-icon.photos {
    background-color: #4285f4;
    background-image: url('https://www.gstatic.com/images/branding/product/1x/photos_48dp.png');
}

.service-icon.maps {
    background-color: #34a853;
    background-image: url('https://www.gstatic.com/images/branding/product/1x/maps_48dp.png');
}

.service-icon.youtube {
    background-color: #ea4335;
    background-image: url('https://www.gstatic.com/images/branding/product/1x/youtube_48dp.png');
}

.service-icon.play {
    background-color: #4285f4;
    background-image: url('https://www.gstatic.com/images/branding/product/1x/play_48dp.png');
}

.service-name {
    font-size: 14px;
    color: var(--text-color);
    margin-top: 8px;
    text-align: center;
}

/* 快速操作按钮 */
.quick-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 0 20px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background-color: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 120px;
    height: 100px;
}

.quick-action-btn:hover {
    background-color: var(--hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.quick-action-btn .material-icons {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

/* 仪表盘页脚 */
.dashboard-footer {
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links-dash {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links-dash a {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links-dash a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.copyright-dash {
    color: var(--secondary-text);
    font-size: 12px;
    text-align: center;
}

/* 模态框表单样式 */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-description {
    margin-bottom: 10px;
    color: var(--secondary-text);
}

.input-group {
    display: flex;
    gap: 15px;
}

.modal-input {
    margin-bottom: 0;
}

.terms-text {
    font-size: 13px;
    color: var(--secondary-text);
    margin: 10px 0;
}

.terms-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.modal-submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.modal-submit-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

/* 帮助内容样式 */
.help-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.help-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.help-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.help-item p {
    color: var(--secondary-text);
    line-height: 1.5;
}

.help-footer, .privacy-footer, .terms-footer {
    font-style: italic;
    color: var(--secondary-text);
    margin-top: 20px;
    font-size: 13px;
}

/* 隐私权和条款内容样式 */
.privacy-content, .terms-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.privacy-intro, .terms-intro {
    font-weight: 500;
    margin-bottom: 10px;
}

.privacy-content h3, .terms-content h3 {
    font-size: 18px;
    margin: 15px 0 10px;
    color: var(--primary-color);
}

.privacy-content p, .terms-content p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.privacy-content ul, .terms-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.privacy-content li, .terms-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}