:root {
            --primary-color: #6750A4;
            --primary-dark: #58429B;
            --primary-light: #EADDFF;
            --surface: #FFFFFF;
            --on-surface: #1D1B20;
            --on-surface-variant: #6B6B6B;
            --outline: #F0F0F0;
            --outline-variant: #9E9E9E;
            --shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            transition: all 0.2s ease;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: #f8f9fa;
            color: var(--on-surface);
            line-height: 1.5;
        }

        /* 顶部标题栏 */
        .md3-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 64px;
            background: var(--surface);
            border-bottom: 1px solid var(--outline);
            display: flex;
            align-items: center;
            padding: 0 16px;
            padding-top: env(safe-area-inset-top);
            z-index: 1000;
        }

        .header-back {
            width: 40px;
            height: 40px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 16px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .header-back::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(0,0,0,0.05);
            border-radius: 50%;
            transition: all 0.3s ease;
            transform: translate(-50%, -50%);
        }

        .header-back:active::after {
            width: 100%;
            height: 100%;
        }

        .back-icon {
            width: 24px;
            height: 24px;
            color: var(--on-surface);
        }

        .header-title {
            font-size: 20px;
            font-weight: 500;
            color: var(--on-surface);
            flex: 1;
            text-align: center;
            margin-right: 56px;
        }

        .header-placeholder {
            height: calc(64px + env(safe-area-inset-top));
        }

        /* 内容区域 */
        .md3-container {
            padding: 16px;
            max-width: 600px;
            margin: 0 auto;
        }

        /* 头像卡片 */
        .avatar-card {
            background: var(--surface);
            border-radius: 16px;
            padding: 24px;
            box-shadow: var(--shadow);
            margin-bottom: 16px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .avatar-card:active {
            background: var(--primary-light);
        }

        .avatar-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .avatar-image {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: 2px solid var(--primary-light);
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            position: relative;
        }

        .avatar-hint {
            font-size: 14px;
            font-weight: 500;
            color: var(--primary-color);
        }

        /* 信息卡片 */
        .info-card {
            background: var(--surface);
            border-radius: 16px;
            padding: 24px;
            box-shadow: var(--shadow);
            margin-bottom: 24px;
        }

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

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

        .item-label {
            font-size: 16px;
            font-weight: 500;
            color: var(--on-surface);
            min-width: 80px;
        }

        .item-content {
            flex: 1;
            display: flex;
            justify-content: flex-end;
            align-items: center;
        }

        /* 输入框样式 */
        .md3-input {
            border: none;
            outline: none;
            background: transparent;
            font-size: 16px;
            color: var(--on-surface);
            text-align: right;
            width: 100%;
            padding: 8px 0;
            border-bottom: 1px solid var(--outline);
        }

        .md3-input:focus {
            border-bottom-color: var(--primary-color);
        }

        .md3-input::placeholder {
            color: var(--outline-variant);
        }

        .char-count {
            font-size: 12px;
            color: var(--outline-variant);
            margin-left: 8px;
        }

        /* 性别选择 */
        .gender-options {
            display: flex;
            gap: 16px;
        }

        .gender-option {
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            color: var(--on-surface-variant);
            position: relative;
            overflow: hidden;
        }

        .gender-option::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--primary-color);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .gender-option.selected {
            color: var(--primary-color);
        }

        .gender-option.selected::after {
            width: 100%;
        }

        .gender-option:active {
            background: var(--primary-light);
        }

        /* 选择器样式 */
        .md3-selector {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            color: var(--on-surface-variant);
        }

        .md3-selector:active {
            background: var(--outline);
        }

        .selector-value {
            color: var(--on-surface);
        }

        .selector-placeholder {
            color: var(--outline-variant);
        }

        .selector-arrow {
            width: 20px;
            height: 20px;
            color: var(--outline-variant);
        }

        /* 保存按钮 */
        .save-button {
            width: 100%;
            height: 56px;
            background: var(--primary-color);
            border: none;
            border-radius: 12px;
            color: white;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            margin-bottom: env(safe-area-inset-bottom);
        }

        .save-button:active {
            background: var(--primary-dark);
        }

        .save-button:active::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100%;
            height: 100%;
            background: rgba(255,255,255,0.2);
            border-radius: 50%;
            transform: translate(-50%, -50%) scale(0);
            animation: ripple 0.6s ease-out;
        }

        .save-button:disabled {
            background: var(--outline);
            color: var(--outline-variant);
            cursor: not-allowed;
        }

        .save-button:disabled:active {
            background: var(--outline);
        }

        @keyframes ripple {
            to {
                transform: translate(-50%, -50%) scale(4);
                opacity: 0;
            }
        }

        /* 响应式调整 */
        @media (max-width: 480px) {
            .md3-container {
                padding: 12px;
            }
            
            .avatar-card,
            .info-card {
                padding: 16px;
            }
            
            .info-item {
                padding: 12px 0;
            }
        }

        /* 隐藏原有样式 */
        .header, .container, .upload, .list, .bottom {
            display: none;
        }